1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00
appwrite/app/views/home/auth/recovery.phtml
2021-02-23 14:00:31 +02:00

44 lines
1.7 KiB
PHTML

<?php
$smtpEnabled = $this->getParam('smtpEnabled', false);
?>
<div class="zone medium">
<h1 class="zone xl margin-bottom-large margin-top">
Password Recovery
</h1>
<small class="pull-end text-size-small">* All fields are required</small>
<form name="account.createRecovery"
data-analytics
data-analytics-activity
data-analytics-event="submit"
data-analytics-category="home"
data-analytics-label="Create Account Recovery"
data-service="account.createRecovery"
data-scope="console"
data-event="submit"
data-success="alert"
data-success-param-alert-text="We have sent you a mail with a password reset link"
data-failure="alert"
data-failure-param-alert-text="Password recovery failed"
data-failure-param-alert-classname="error">
<label>Email</label>
<input name="email" type="email" class="full-width" autocomplete="email" placeholder="me@example.com" required>
<input name="url" type="hidden" data-ls-bind="{{env.ENDPOINT}}/auth/recovery/reset" />
<?php if(!$smtpEnabled): ?>
<div class="box note padding-tiny warning margin-bottom text-align-center">
<i class="icon-warning"></i> SMTP connection is disabled. <a href="https://appwrite.io/docs/email-delivery" target="_blank" rel="noopener">Learn more <i class="icon-link-ext"></i></a>
</div>
<?php endif; ?>
<button type="submit" class="btn btn-primary"<?php if(!$smtpEnabled): ?> disabled<?php endif; ?>><i class="fa fa-sign-in"></i> Recover</button>
</form>
</div>
<div class="zone medium text-align-center">
<a href="/auth/signin">Back to sign in</a>
</div>