2021-02-24 01:00:31 +13:00
<?php
$smtpEnabled = $this->getParam('smtpEnabled', false);
?>
2019-05-09 18:54:39 +12:00
< div class = "zone medium" >
< h1 class = "zone xl margin-bottom-large margin-top" >
2019-09-27 06:47:48 +12:00
Password Recovery
2019-05-09 18:54:39 +12:00
< / h1 >
2020-02-09 07:52:47 +13:00
< small class = "pull-end text-size-small" > * All fields are required< / small >
2019-05-09 18:54:39 +12:00
2020-02-04 08:20:10 +13:00
< form name = "account.createRecovery"
2021-01-18 19:29:26 +13:00
data-analytics
data-analytics-activity
2020-02-04 08:20:10 +13:00
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"
2020-02-08 12:41:45 +13:00
data-success-param-alert-text="We have sent you a mail with a password reset link"
2020-02-04 08:20:10 +13:00
data-failure="alert"
data-failure-param-alert-text="Password recovery failed"
data-failure-param-alert-classname="error">
2019-05-09 18:54:39 +12:00
2019-09-27 06:47:48 +12:00
< label > Email< / label >
2019-05-09 18:54:39 +12:00
< input name = "email" type = "email" class = "full-width" autocomplete = "email" placeholder = "me@example.com" required >
2021-02-19 00:57:30 +13:00
< input name = "url" type = "hidden" data-ls-bind = "{{env.ENDPOINT}}/auth/recovery/reset" / >
2019-05-09 18:54:39 +12:00
2021-02-24 01:00:31 +13:00
<?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 >
2019-05-09 18:54:39 +12:00
< / form >
< / div >
2019-11-13 07:41:48 +13:00
< div class = "zone medium text-align-center" >
2019-09-27 06:47:48 +12:00
< a href = "/auth/signin" > Back to sign in< / a >
2019-05-09 18:54:39 +12:00
< / div >