Merge pull request #232 from nextcloud/bugfix/67/add-back-button
Add a "Back to login" link similar to the forgot password page
This commit is contained in:
commit
24cc827440
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
/** @var array $_ */
|
||||
/** @var \OCP\IL10N $l */
|
||||
script('registration', 'settings');
|
||||
?>
|
||||
<form id="registration_settings_form" class="section">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
/** @var array $_ */
|
||||
/** @var \OCP\IL10N $l */
|
||||
style('registration', 'style');
|
||||
?>
|
||||
<ul class="error-wide">
|
||||
<li class='error'><?php p($l->t('Registration is only allowed for the following domains:')); ?>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
\OCP\Util::addStyle('core', 'guest');
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
\OCP\Util::addScript('registration', 'form');
|
||||
/** @var array $_ */
|
||||
/** @var \OCP\IL10N $l */
|
||||
style('registration', 'style');
|
||||
script('registration', 'form');
|
||||
?><form action="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('registration.register.createAccount', ['token'=>$_['token']])) ?>" method="post">
|
||||
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
|
||||
<fieldset>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
\OCP\Util::addStyle('core', 'guest');
|
||||
/** @var array $_ */
|
||||
/** @var \OCP\IL10N $l */
|
||||
style('registration', 'style');
|
||||
?>
|
||||
<ul class="msg error-wide nc-theming-main-text">
|
||||
<li><?php print_unescaped($_['msg'])?></li>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
\OCP\Util::addStyle('core', 'guest');
|
||||
/** @var array $_ */
|
||||
/** @var \OCP\IL10N $l */
|
||||
style('registration', 'style');
|
||||
if ($_['entered']): ?>
|
||||
<?php if (empty($_['errormsg'])): ?>
|
||||
<ul class="success">
|
||||
|
|
@ -21,6 +22,10 @@ if ($_['entered']): ?>
|
|||
</p>
|
||||
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']); ?>" />
|
||||
<input type="submit" id="submit" value="<?php p($l->t('Request verification link')); ?>" />
|
||||
|
||||
<a id="lost-password-back" href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('core.login.showLoginForm')) ?>">
|
||||
<?php p($l->t('Back to login')); ?>
|
||||
</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
|
@ -44,6 +49,10 @@ if ($_['entered']): ?>
|
|||
</p>
|
||||
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']); ?>" />
|
||||
<input type="submit" id="submit" value="<?php p($l->t('Request verification link')); ?>" />
|
||||
|
||||
<a id="lost-password-back" href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('core.login.showLoginForm')) ?>">
|
||||
<?php p($l->t('Back to login')); ?>
|
||||
</a>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue