File: authenticate.twig

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (29 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>exampleauth login page</title>
  </head>
  <body>
    <h1>exampleauth login page</h1>
    <p>
      In this example you can log in with two accounts: <code>student</code> and <code>admin</code>.
      In both cases, the password is the same as the username.
    </p>
    <form method="post" action="?">
      <p>
        Username:
        <input type="text" name="username">
      </p>
      <p>
        Password:
        <input type="text" name="password">
      </p>
      <input type="hidden" name="ReturnTo" value="{{ returnTo|escape('html') }}">
      <p><input type="submit" value="Log in"></p>
    </form>
{% if badUserPass == true %}
    <p>!!! Bad username or password !!!</p>
{% endif %}
  </body>
</html>