Fix invite empty email

This commit is contained in:
Daniel García
2019-01-22 17:26:17 +01:00
parent b8cabadd43
commit ddd49596ba
2 changed files with 9 additions and 1 deletions

View File

@@ -65,7 +65,7 @@
}
function deleteUser(id, mail) {
var input_mail = prompt("To delete user '" + mail + "', please type the name below")
if (input_mail) {
if (input_mail != null) {
if (input_mail == mail) {
_post("/admin/users/" + id + "/delete",
"User deleted correctly",