|
|
@ -7,7 +7,6 @@ function run() { |
|
|
|
var password = document.getElementById('password').value; |
|
|
|
var password = document.getElementById('password').value; |
|
|
|
sha256(password).then(function(pwhash) { |
|
|
|
sha256(password).then(function(pwhash) { |
|
|
|
var credentials = {username: username, password_hash: pwhash} |
|
|
|
var credentials = {username: username, password_hash: pwhash} |
|
|
|
console.log(username, password, credentials); |
|
|
|
|
|
|
|
post_object('{{ url_for('journalmarks.login') }}', credentials) |
|
|
|
post_object('{{ url_for('journalmarks.login') }}', credentials) |
|
|
|
.then(journalmarks_initkey(username, password)).then(function() { |
|
|
|
.then(journalmarks_initkey(username, password)).then(function() { |
|
|
|
window.location.href = '{{ next }}'; |
|
|
|
window.location.href = '{{ next }}'; |
|
|
|