You've already forked OpenShorte.old
Added secondary security login with double password
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function login ( ) {
|
||||
var username = document.getElementById ( "form-username" ).value;
|
||||
var password = document.getElementById ( "form-password" ).value;
|
||||
password = SHA512 ( password );
|
||||
hashedpassword = SHA512 ( password );
|
||||
var xhr = new XMLHttpRequest ( );
|
||||
xhr.open ( "POST", 'login', true );
|
||||
xhr.onreadystatechange = function ( ) {
|
||||
@@ -24,6 +24,7 @@ function login ( ) {
|
||||
data = new FormData ( );
|
||||
data.append('username', username);
|
||||
data.append('password', password);
|
||||
data.append('hashedpassword', hashedpassword);
|
||||
xhr.send( data );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user