fix(js): clear fields after success

This commit is contained in:
Philipp Matthias Schaefer 2021-03-14 21:44:18 +01:00
parent 4edbd90de8
commit aaec961560

View File

@ -95,6 +95,7 @@ function changePasswords() {
switch(response.status) { switch(response.status) {
case 202: case 202:
showModal("Success"); showModal("Success");
clearFields();
break; break;
case 401: case 401:
showModal("InvalidCredentials"); showModal("InvalidCredentials");