Restore password, need senmail

This commit is contained in:
JoseluCross
2018-10-18 20:19:30 +02:00
parent 8e5d88cd3f
commit cb7a16984b
3 changed files with 53 additions and 4 deletions

View File

@@ -30,9 +30,10 @@
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="col-sm-offset-2 col-sm-8">
<button type="submit" class="btn btn-success">Submit</button>
</div>
<div><a class="text-info" href="{{ path('restore') }}">Restore Password</a> </div>
</div>
<div class="col-sm-offset-1 col-sm-12">
<button onclick="nowRegister()" id="registerbtn" class="btn btn-primary">Don't have an account yet? Sing up</button>

View File

@@ -0,0 +1,35 @@
{% extends app.fronthtml~"/base.twig" %}
{% block content %}
<div id="register" style="">
<form class="form-horizontal" method="post" id="restore">
<div class="form-group">
<label class="control-label"><strong>Restore your password</strong></label>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="emailre">Email:</label>
<div class="col-sm-10">
<input class="form-control" required="required" name="emailre" id="emailre" placeholder="Enter email" type="email">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-success">Send me an email</button>
</div>
</div>
</form>
</div>
{% endblock %}
{% block js %}
<script>
$(document).ready(function() {
var options = {success: function(data){
console.log(data);
},
url: '{{ path("restore")}}',
} ;
$("#restore").ajaxForm(options);
});
</script>
{% endblock %}