{{ include("header.html.twig") }}
<script src="{{ asset('plugins/jquery/jquery.min.js') }}"></script>
<script src="{{ asset('plugins/jquery/jquery-ui.min.js') }}"></script>
<script src="{{ asset('plugins/bootstrap/js/bootstrap.js') }}"></script>
<script src="{{ asset('plugins/bootstrap-notify/bootstrap-notify.js') }}"></script>
<script src="{{ asset('custom/main/custom.js') }}"></script>
<body
class="account separate-inputs" data-page="login">
<!-- BEGIN LOGIN BOX -->
<div class="container" id="login-block">
<div class="row">
<img style="max-width:600px;" class="center-block" src="{{asset('logo2.png')}}"/>
<div class="col-sm-6 col-md-4 col-md-offset-4">
<div
class="account-wall">
<h2 style="color:white;">Réinitialiser mon mot de passe</h2>
<!--<form method="POST" class="form-signin" action="{# path("login") #}" role="form"> -->
<div class="append-icon">
<input type="text" name="username" id="username" class="form-control form-white username" placeholder="Email" required>
<i class="icon-user"></i>
</div>
<button type="button" id="verif_mail" class="btn btn-lg btn-danger btn-block ladda-button" data-style="expand-left">Envoyer</button>
<!--</form>-->
</div>
</div>
</div>
</div>
{# include 'modal_login.html.twig' #}
</body>
<script>
$(document).ready(function () {
$('#verif_mail').on('click', function(){
$.ajax({
type: 'POST',
url: "{{ path('ajax_login') }}",
data: {
'function': 'verifEmail',
'username': $('#username').val()
}
}).done(function (data) {
if(data.success == true){
notif(data.message);
//window.location.href = '/login';
}else{
notif(data.message);
}
});
});
});
</script>