<h2>Reset Password</h2>
<ul>
<li>If you've lost or forgotten your password.</li>
<li>If your email is already in our system and you need to set your password.</li>
</ul>
<p>Enter your <strong>email address</strong> here and we will send a link with instructions to set or reset your password.</p>
{% trans_default_domain 'FOSUserBundle' %}
<form action="{{ path('fos_user_resetting_send_email') }}" method="POST" class="form">
<div class="form-group">
{% if invalid_username is defined %}
<p>{{ 'resetting.request.invalid_username'|trans({'%username%': invalid_username}) }}</p>
{% endif %}
<label for="username" class="control-label">Email Address</label>
<div class="input-group w-100">
<input type="text" class="form-control" name="username" id="username" value="{{ last_username|default('') }}">
</div>
</div>
<button type="submit" class="btn btn-primary w-100 mt-3">Submit</button>
<p class="text-center mt-4">
Have a CausePilot account?
{% if app.session.has('viewed_campaign') %}
{% set campaignData = app.session.get('viewed_campaign') %}
<a href="{{ path('campaign_login_user', {orgSlug: campaignData.organization.slug, campaignSlug: campaignData.slug}) }}">Sign in</a>
{% else %}
<a href="/login">Sign in</a>
{% endif %}
</p>
</form>