Nuestro burocrata preferido: Sam Lowry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.9 KiB

5 years ago
{{template "header.html"}}
{{template "navbar.html" "password"}}
<div class="container">
<br />
{{if eq . "PassChanged"}}
<h1 class="row justify-content-center">La contraseña ha sido actualizada</h1>
<h1 class="row justify-content-center">Cambia tu contraseña</h1>
<br />
<div class="row justify-content-center">
<form class="col-4" id="needs-validation" action="/password/" method="post" novalidate>
<div class="form-group">
<label for="oldpass">Antigua contraseña:</label>
<input type="password" class="form-control {{if eq . "WrongOldpass"}}is-invalid{{end}}" id="oldpass" name="oldpass" placeholder="Contraseña">
{{if eq . "WrongOldpass"}}<div class="invalid-feedback">Contraseña incorrecta.</div>{{end}}
5 years ago
<div class="form-group">
<label for="password">Nueva contraseña:</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Contraseña">
<div class="form-group">
<label for="password2">Repite la contraseña:</label>
<input type="password" class="form-control {{if eq . "WrongPass"}}is-invalid{{end}}" id="password2" name="password2" placeholder="Contraseña">
<div class="invalid-feedback">No son la misma contraseña.</div>
<button type="submit" class="btn btn-primary">Entrar</button>
(function() {
"use strict";
window.addEventListener("load", function() {
var form = document.getElementById("needs-validation");
form.addEventListener("submit", function(event) {
if (form.password.value !== form.password2.value) {
}, false);
}, false);
5 years ago
{{template "footer.html"}}