Nog meer foutherstel
This commit is contained in:
parent
bcc3f22459
commit
4cf28e762e
@ -24,9 +24,6 @@ class Daniel
|
|||||||
// Render index view
|
// Render index view
|
||||||
return $this->renderer->render($response, 'Daniel.phtml', $args);
|
return $this->renderer->render($response, 'Daniel.phtml', $args);
|
||||||
});
|
});
|
||||||
$app->post('/daniel', function ($request, $response, $args) {
|
|
||||||
// Render index view
|
|
||||||
$post = $request->getParsedBody();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$resp = $this->auth->login($post['rekeningnr'], $post['pascode']);
|
$resp = $this->auth->login($post['rekeningnr'], $post['pascode']);
|
||||||
|
59
templates/daniel.phtml
Normal file
59
templates/daniel.phtml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<title>InforBank - Inloggen</title>
|
||||||
|
<link href='//fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||||
|
<!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous" -->
|
||||||
|
</head>
|
||||||
|
<style>
|
||||||
|
.form-signin {
|
||||||
|
max-width: 330px;
|
||||||
|
padding: 15px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
color: #ff6000;
|
||||||
|
background-color: #2e652c;
|
||||||
|
border-color: #2e6da4;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
.jumbotron{
|
||||||
|
//text-align: center;
|
||||||
|
}
|
||||||
|
.form-control{
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
color: #ff6000;
|
||||||
|
}
|
||||||
|
.footer{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<body>
|
||||||
|
<div class="jumbotron">
|
||||||
|
<div class="container">
|
||||||
|
<h1>InforBank</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<form class="form-signin" method="post">
|
||||||
|
<h2 class="form-signin-heading">Inloggen</h2>
|
||||||
|
<label for="inputUsername" class="sr-only">Rekeningnummer (alleen cijfers)</label>
|
||||||
|
<input type="text" id="inputUsername" name="rekeningnr" class="form-control" placeholder="012456789"/>
|
||||||
|
|
||||||
|
<label for="inputPassword" class="sr-only">Pascode</label>
|
||||||
|
<input type="password" id="inputPassword" name="pascode" class="form-control" placeholder="0000"/>
|
||||||
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Inloggen</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<footer class="footer">
|
||||||
|
© 2017 Alle rechten voorbehouden
|
||||||
|
</footer>
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user