Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
3deadfeb
Commit
3deadfeb
authored
5 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
Add oldui template for exampleauth
Closes: #1275
parent
8f0fc128
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/exampleauth/templates/authenticate.tpl.php
+29
-0
29 additions, 0 deletions
modules/exampleauth/templates/authenticate.tpl.php
modules/exampleauth/www/authpage.php
+1
-1
1 addition, 1 deletion
modules/exampleauth/www/authpage.php
with
30 additions
and
1 deletion
modules/exampleauth/templates/authenticate.tpl.php
0 → 100644
+
29
−
0
View file @
3deadfeb
<!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=
"
<?=
htmlspecialchars
(
$this
->
data
[
'returnTo'
])
?>
"
>
<p><input
type=
"submit"
value=
"Log in"
></p>
</form>
<?php
if
(
$this
->
data
[
'badUserPass'
])
:
?>
<p>
!!! Bad username or password !!!
</p>
<?php
endif
;
?>
</body>
</html>
This diff is collapsed.
Click to expand it.
modules/exampleauth/www/authpage.php
+
1
−
1
View file @
3deadfeb
...
...
@@ -80,7 +80,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// if we get this far, we need to show the login page to the user
$config
=
\SimpleSAML\Configuration
::
getInstance
();
$t
=
new
\SimpleSAML\XHTML\Template
(
$config
,
'exampleauth:authenticate.t
wig
'
);
$t
=
new
\SimpleSAML\XHTML\Template
(
$config
,
'exampleauth:authenticate.t
pl.php
'
);
$t
->
data
[
'badUserPass'
]
=
$badUserPass
;
$t
->
data
[
'returnTo'
]
=
$returnTo
;
$t
->
show
();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment