32 lines
1.4 KiB
PHTML
32 lines
1.4 KiB
PHTML
<?php
|
|
use Utopia\Locale\Locale;
|
|
?>
|
|
<div class="zone medium">
|
|
<h1 class="zone xl margin-bottom-large margin-top">
|
|
<?php echo $this->escape(Locale::getText('home.auth.recovery.title')); ?>
|
|
</h1>
|
|
|
|
<small class="pull-end">* <?php echo $this->escape(Locale::getText('home.auth.recovery.required')); ?></small>
|
|
|
|
<form name="recovery"
|
|
data-service="auth.recovery"
|
|
data-scope="console"
|
|
data-event="submit"
|
|
data-success="alert"
|
|
data-success-alert="<?php echo $this->escape(Locale::getText('home.auth.recovery.success')); ?>"
|
|
data-failure="alert"
|
|
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.recovery.failure')); ?>"
|
|
data-failure-param-alert-classname="error">
|
|
|
|
<label><?php echo $this->escape(Locale::getText('home.auth.recovery.labels.email')); ?></label>
|
|
<input name="email" type="email" class="full-width" autocomplete="email" placeholder="me@example.com" required>
|
|
|
|
<input name="redirect" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/recovery/reset" />
|
|
|
|
<button type="submit" class="btn btn-primary"><i class="fa fa-sign-in"></i> <?php echo $this->escape(Locale::getText('home.auth.recovery.action')); ?></button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="zone medium">
|
|
<a href="/auth/signin"><?php echo $this->escape(Locale::getText('home.auth.recovery.back')); ?></a>
|
|
</div>
|