Merge pull request #22815 from prastut/feature-enhance-loginflow
Trigger login if remember_login checked
This commit is contained in:
commit
67a58d663d
|
@ -17,8 +17,19 @@ OC.Login = _.extend(OC.Login || {}, {
|
||||||
.addClass('icon-loading-small')
|
.addClass('icon-loading-small')
|
||||||
.css('opacity', '1');
|
.css('opacity', '1');
|
||||||
return true;
|
return true;
|
||||||
|
},
|
||||||
|
|
||||||
|
rememberLogin: function(){
|
||||||
|
if($(this).is(":checked")){
|
||||||
|
if($("#user").val() && $("#password").val()) {
|
||||||
|
$('#submit').trigger('click');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('form[name=login]').submit(OC.Login.onLogin);
|
$('form[name=login]').submit(OC.Login.onLogin);
|
||||||
|
|
||||||
|
$('#remember_login').click(OC.Login.rememberLogin);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue