Compare commits
1 Commits
remember-m
...
master
Author | SHA1 | Date |
---|---|---|
AJ ONeal | b8253fa500 |
|
@ -5,7 +5,7 @@ issuer.html
|
|||
| *issuer.html*
|
||||
| [issuer.rest.walnut.js](https://git.oauth3.org/OAuth3/issuer.rest.walnut.js)
|
||||
| [issuer.srv](https://git.oauth3.org/OAuth3/issuer.srv)
|
||||
| Sponsored by [Daplie](https://daplie.com)
|
||||
| Sponsored by [ppl](https://ppl.family)
|
||||
|
||||
|
||||
This is a browser application which implements the issuer side of the *authorization_dialog* flow for OAuth3.
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
<img src="./img/pressed-check.png" class="check js-remember-status">
|
||||
<!-- <span class="fa fa-2x fa-purple fa-square-o dap-remember-margin js-remember-status"></span> -->
|
||||
<span class="dap-remember-me noselect">Remember this device.</span>
|
||||
<input class="js-remember-checkbox hidden" type="checkbox" checked></input>
|
||||
<input class="js-remember-checkbox hidden" type="checkbox"></input>
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary submit-btn dap-full-button-green js-submit-code-btn" disabled>Submit</button>
|
||||
|
|
|
@ -362,13 +362,7 @@ $(function () {
|
|||
function handleAuthorizationDialog() {
|
||||
return getSession(CONFIG.host).then(function (session) {
|
||||
return getGrants(session);
|
||||
}).catch(function (e) {
|
||||
if(e) {
|
||||
console.error(
|
||||
"Error authing current session. Requiring re-login. Message: "
|
||||
, e.message
|
||||
);
|
||||
}
|
||||
}).catch(function () {
|
||||
// TODO select the providers the client wants to show
|
||||
// providers=daplie.com,facebook.com,google.com // etc
|
||||
// TODO let the client specify switch_user
|
||||
|
|
|
@ -40,18 +40,21 @@ $('body').on('click', '.js-remember-label', function (ev) {
|
|||
var $this = $(this);
|
||||
if ($this.find('.js-remember-checkbox').is(':checked') === true) {
|
||||
$this.find('.js-remember-checkbox').prop( "checked", false );
|
||||
$this.find('.js-remember-status').attr("src", "./img/unpressed-check.png");
|
||||
} else {
|
||||
$this.find('.js-remember-checkbox').prop( "checked", true );
|
||||
$this.find('.js-remember-status').attr("src", "./img/pressed-check.png");
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('click', '.check', function () {
|
||||
'use strict';
|
||||
});
|
||||
|
||||
$('body').on('click', '.js-auth-li-enabled', function (ev) {
|
||||
'use strict';
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
|
||||
|
||||
var $this = $(this);
|
||||
var $hiddenCheckbox = $this.find('.js-auth-checkbox');
|
||||
var $img = $this.find('.check');
|
||||
|
|
Loading…
Reference in New Issue