diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-01-20 10:42:19 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-20 10:42:19 +0100 |
commit | d6a63016ae0e14efeefd763a1042c515b60b3f7d (patch) | |
tree | 2a9a10e609a79402bc5ea40ff25cfea76d92e8b4 /core/templates | |
parent | c2a1a02fe452fe93057f36e6d37a8634df2e0bd6 (diff) | |
download | nextcloud-server-d6a63016ae0e14efeefd763a1042c515b60b3f7d.tar.gz nextcloud-server-d6a63016ae0e14efeefd763a1042c515b60b3f7d.zip |
move lost controller to core/controller
* lostpassword.css is unneeded since #11696 is merged - 1b50d4f7ceb92fffe0d38f823f175cf7e419c69e
* js is already in core/js
* css is moved to core/css/lostpassword
* template is moved to core/templates/lostpassword
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/lostpassword/email.php | 21 | ||||
-rw-r--r-- | core/templates/lostpassword/resetpassword.php | 40 |
2 files changed, 61 insertions, 0 deletions
diff --git a/core/templates/lostpassword/email.php b/core/templates/lostpassword/email.php new file mode 100644 index 00000000000..3ca424d5294 --- /dev/null +++ b/core/templates/lostpassword/email.php @@ -0,0 +1,21 @@ +<?php +/** + * @author Christopher Schäpers <kondou@ts.unde.re> + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ +echo str_replace('{link}', $_['link'], $l->t('Use the following link to reset your password: {link}')); diff --git a/core/templates/lostpassword/resetpassword.php b/core/templates/lostpassword/resetpassword.php new file mode 100644 index 00000000000..49ced424648 --- /dev/null +++ b/core/templates/lostpassword/resetpassword.php @@ -0,0 +1,40 @@ +<?php +/** + * @author Jan-Christoph Borchardt <hey@jancborchardt.net> + * @author Lukas Reschke <lukas@owncloud.com> + * @author Michael Gapczynski <GapczynskiM@gmail.com> + * @author Morris Jobke <hey@morrisjobke.de> + * @author Victor Dubiniuk <dubiniuk@owncloud.com> + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ +style('core', 'lostpassword/resetpassword'); +script('core', 'lostpassword'); +?> + +<form action="<?php print_unescaped($_['link']) ?>" id="reset-password" method="post"> + <fieldset> + <p> + <label for="password" class="infield"><?php p($l->t('New password')); ?></label> + <input type="password" name="password" id="password" value="" placeholder="<?php p($l->t('New Password')); ?>" required /> + </p> + <input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?>" /> + <p class="text-center"> + <img class="hidden" id="float-spinner" src="<?php p(\OCP\Util::imagePath('core', 'loading-dark.gif'));?>"/> + </p> + </fieldset> +</form> |