Skip to content

Commit

Permalink
Aggiunto controllo degli input per il cambio dati grazie a pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody2806 committed Jan 2, 2024
1 parent ff598a6 commit b52b614
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/JSP/Cambio_dati.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
<img src="../Image/profilo_utente.png" id="paziente">
<div class="down">
<div class="input-field">
<input class="input" type="text" placeholder="<%= infoutente.getFirstname()%>" name="firstname"/>
<input class="input" type="text" placeholder="<%= infoutente.getFirstname()%>" pattern="^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$" name="firstname"/>
<label class="label" for="input">FirstName</label>
</div>
<div class="input-field">
<input class="input" type="text" placeholder="<%= infoutente.getLastname()%>" name = "lastname"/>
<input class="input" type="text" placeholder="<%= infoutente.getLastname()%>" pattern="^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$" name = "lastname"/>
<label class="label" for="input">LastName</label>
</div>
<div class="input-field">
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/JSP/Change_Passsword2.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<p class="info">Inserisci la nuova password<br> che vuoi assegnare al tuo account</p>


<input type="text" id="password" name="password" placeholder="Nuova password" required="" onchange="controllaPassword()">
<input type="text" id="Conferma_password" name="Conferm_password" placeholder="Conferma nuova password" required="" onchange="controllaPassword()">
<input type="text" id="password" name="password" placeholder="Nuova password" required="" onchange="controllaPassword()" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{12,}">
<input type="text" id="Conferma_password" name="Conferm_password" placeholder="Conferma nuova password" required="" onchange="controllaPassword()" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{12,}">
<button class="form-submit-btn" id="Controlla" disabled>Conferma password</button>


Expand Down

0 comments on commit b52b614

Please sign in to comment.