diff options
author | Vincent Chan <plus.vincchan@gmail.com> | 2016-02-10 15:28:14 +0100 |
---|---|---|
committer | Vincent Chan <plus.vincchan@gmail.com> | 2016-02-10 15:28:14 +0100 |
commit | 06b2f11e57ca893e963bfac8a0b051f4aa88a1ce (patch) | |
tree | 4fff3fc6a43f87447a938433119e96e14487e0fd /core/templates | |
parent | e7859f705c7128e3af15dbde5438c782065ac874 (diff) | |
download | nextcloud-server-06b2f11e57ca893e963bfac8a0b051f4aa88a1ce.tar.gz nextcloud-server-06b2f11e57ca893e963bfac8a0b051f4aa88a1ce.zip |
refactoring code
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/login.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index 590b035bce3..a12008295c4 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -67,13 +67,12 @@ script('core', [ <?php } ?> <?php if ($_['rememberLoginAllowed'] === true) : ?> <div class="remember-login-container"> + <?php if ($_['rememberLoginState'] === 0) { ?> <input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white"> - <?php if ($_POST['remember_login'] !== '1') { ?> - <label for="remember_login"> <?php } else { ?> - <label previously="checked" for="remember_login"> + <input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white" checked="checked"> <?php } ?> - <?php p($l->t('Stay logged in')); ?></label> + <label for="remember_login"><?php p($l->t('Stay logged in')); ?></label> </div> <?php endif; ?> <input type="hidden" name="timezone-offset" id="timezone-offset"/> |