diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-09-26 01:33:22 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-26 23:17:26 +0400 |
commit | 950d4e1da498b7c928b5f6e1cbcca8e57ddecb0c (patch) | |
tree | d42e5abbd98e8e27fdb8b37722593f7354e89cf0 /core | |
parent | aae6881494af7ada98301667c133272a345ef8f0 (diff) |
Move lostpassword code to own app
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/login.php | 2 | ||||
-rw-r--r-- | core/templates/lostpassword.php | 14 | ||||
-rw-r--r-- | core/templates/resetpassword.php | 10 |
3 files changed, 1 insertions, 25 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index 717f6bcabda..c8a86d71a91 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -1,7 +1,7 @@ <form action="index.php" method="post"> <fieldset> <?php if($_['error']): ?> - <a href="index.php?lostpassword"><?php echo $l->t('Lost your password?'); ?></a> + <a href="lostpassword/index.php"><?php echo $l->t('Lost your password?'); ?></a> <?php endif; ?> <?php if(empty($_["username"])): ?> <input type="text" name="user" id="user" placeholder="Username" value="" autocomplete="off" required autofocus /> diff --git a/core/templates/lostpassword.php b/core/templates/lostpassword.php deleted file mode 100644 index 67e34164d08..00000000000 --- a/core/templates/lostpassword.php +++ /dev/null @@ -1,14 +0,0 @@ -<form action="index.php?lostpassword" method="post"> - <fieldset> - <?php echo $l->t('You will receive a link to reset your password via Email.'); ?> - <?php if ($_['requested']): ?> - <?php echo $l->t('Requested'); ?> - <?php else: ?> - <?php if ($_['error']): ?> - <?php echo $l->t('Login failed!'); ?> - <?php endif; ?> - <input type="text" name="user" id="user" placeholder="<?php echo $l->t('Username or Email'); ?>" value="" autocomplete="off" required autofocus /> - <input type="submit" id="submit" value="<?php echo $l->t('Request reset'); ?>" /> - <?php endif; ?> - </fieldset> -</form>
\ No newline at end of file diff --git a/core/templates/resetpassword.php b/core/templates/resetpassword.php deleted file mode 100644 index 2f43a93cfb5..00000000000 --- a/core/templates/resetpassword.php +++ /dev/null @@ -1,10 +0,0 @@ -<form action="<?php echo 'index.php?'.$_SERVER['QUERY_STRING']; ?>" method="post"> - <fieldset> - <?php if($_['success']): ?> - <?php echo $l->t('Your password was reset'); ?> - <?php else: ?> - <input type="password" name="password" id="password" placeholder="<?php echo $l->t('New password'); ?>" value="" required /> - <input type="submit" id="submit" value="<?php echo $l->t('Reset password'); ?>" /> - <?php endif; ?> - </fieldset> -</form> |