Hide password reset form if mjml is not setup

This commit is contained in:
Jay Trees 2022-03-04 11:08:11 +01:00
parent 0bae0abbbb
commit 4262c20172

View file

@ -141,27 +141,29 @@ $page->navigation();
is the most trusted open source password manager. is the most trusted open source password manager.
</p> </p>
<p> <?php if ($options->getOption('mjml_api_key') && $options->getOption('mjml_api_secret')) { ?>
<form class="ui form reset" method="post"> <p>
<div class="field"> <form class="ui form reset" method="post">
<div class="ui action input"> <div class="field">
<div class="ui left icon action input"> <div class="ui action input">
<input type="email" name="email" placeholder="john.doe@domain.tld" /> <div class="ui left icon action input">
<i class="envelope icon"></i> <input type="email" name="email" placeholder="john.doe@domain.tld" />
<i class="envelope icon"></i>
</div>
<input class="ui primary button"
type="submit"
name="reset"
value="Send email"
/>
</div> </div>
<input class="ui primary button"
type="submit"
name="reset"
value="Send email"
/>
</div> </div>
</form>
</p>
</div> <p>Please note that you have to enter the email address, you have registered with.</p>
</form> <?php } ?>
</p>
<p>Please note that you have to enter the email address, you have registered with.</p>
</div> </div>
</div> </div>