Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Passwords are now OTPed instead of being stored in the clear in the
user's session.
- Loading branch information
Showing
3 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
<form action="/login" method="POST"> | ||
<input type="text" name="username" /><br> | ||
<input type="password" name="password" /><br> | ||
<input type="hidden" name="path" value="[% path_reequested %]" /> | ||
<input type="submit" value="Log in" /> | ||
</form> | ||
<font color="red">[% error %]</font> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If username is the primary key, then you should write this as:
my $auth = schema->resultset('Auth')->find($user);