edit-email-button fix

This commit is contained in:
Jon Lambson 2017-07-07 11:02:49 -06:00
parent 21cc9df926
commit 4d9238c476
2 changed files with 15 additions and 4 deletions

View File

@ -368,6 +368,20 @@ $(function () {
window.location = OAUTH3.url.resolve(clientParams.client_uri, clientParams.redirect_uri);
};
util.editEmail = function () {
// var clientParams = OAUTH3.query.parse(loc.hash || loc.search);
//
// localStorage.clear();
//
// clientParams.redirect_uri += '?' + OAUTH3.query.stringify({
// state: clientParams.state
// , debug: clientParams.debug
// });
//
// window.location = OAUTH3.url.resolve(clientParams.client_uri, clientParams.redirect_uri);
$('.js-authn').hide();
$('.js-userid-container').show();
};
//
@ -383,6 +397,7 @@ $(function () {
$('body').on('click', '.js-authz-remember-me-not', util.rememberDeviceNot);
$('body').on('click', '.js-login-allow', util.acceptScopesAndLogin);
$('body').on('click', '.js-login-deny', util.closeLoginDeny);
$('body').on('click', '.js-edit-email-button', util.editEmail);
$('body').on('keyup', 'form .js-oauth3-email', util.checkAuthEmail);
function handleAuthorizationDialog() {

View File

@ -94,10 +94,6 @@ $('body').on('click', '.js-auth-li-enabled', function (ev) {
// $('.js-authn-otp-code').mask('####-####-####');
$('body').on('click', '.js-edit-email-button', function () {
$('.js-userid-container').show();
});
$('body').on('keyup', '.js-oauth3-email', function () {
'use strict';
var emailAddress = $(this).val();