show a blank state when goind directly to the page without params
This commit is contained in:
parent
257d130245
commit
c7bbf43f10
1 changed files with 9 additions and 3 deletions
12
login.html
12
login.html
|
@ -78,10 +78,16 @@
|
|||
if (params.error) {
|
||||
authstatus = "REFUSED: " + params.error;
|
||||
$('#authorization_status').addClass('refused');
|
||||
$('#oncode').hide();
|
||||
$('#oncode').hide();
|
||||
} else {
|
||||
authstatus = "AUTHORIZED" ;
|
||||
$('#authorization_status').addClass('authorized');
|
||||
if (params.code) {
|
||||
authstatus = "AUTHORIZED" ;
|
||||
$('#authorization_status').addClass('authorized');
|
||||
} else {
|
||||
authstatus = "UNKNOWN" ;
|
||||
$('#oncode').hide();
|
||||
$('#state-param').html("No state");
|
||||
}
|
||||
}
|
||||
$('#authorization_status').html( authstatus );
|
||||
$('#state-param').html(params.state);
|
||||
|
|
Loading…
Reference in a new issue