mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-20 01:37:50 -05:00
Merge pull request #1 from Snipzil/main
feat(auth): add weak password error message & fix URL load fails on captcha
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -503,6 +503,7 @@
|
|||||||
username_taken: "That username is already taken.",
|
username_taken: "That username is already taken.",
|
||||||
name_not_allowed: "That username is not allowed.",
|
name_not_allowed: "That username is not allowed.",
|
||||||
invalid_password: "Passwords need 10 characters or more, with a capital letter, a small letter and a digit.",
|
invalid_password: "Passwords need 10 characters or more, with a capital letter, a small letter and a digit.",
|
||||||
|
weak_password: "That password is too easy to guess: it is a common one, or has your username in it.",
|
||||||
choose_animal: "Choose an animal first.",
|
choose_animal: "Choose an animal first.",
|
||||||
too_many_registrations: "Too many accounts were created from your address. Try again in an hour.",
|
too_many_registrations: "Too many accounts were created from your address. Try again in an hour.",
|
||||||
address_banned: "Your address is banned.",
|
address_banned: "Your address is banned.",
|
||||||
|
|||||||
+6
-1
@@ -420,7 +420,12 @@ ipcMain.handle("captcha", (event, serverUrl, action) => new Promise(resolve => {
|
|||||||
captchaServer = null;
|
captchaServer = null;
|
||||||
answer("");
|
answer("");
|
||||||
});
|
});
|
||||||
box.loadURL(new URL(`/captcha?action=${action === "signup" ? "signup" : "login"}`, server).href);
|
box.loadURL(new URL(`/captcha?action=${action === "signup" ? "signup" : "login"}`, server).href).catch(() => {
|
||||||
|
answer("");
|
||||||
|
if (!box.isDestroyed()) {
|
||||||
|
box.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// what the client's processes use: the game is the "Pepper Plugin" one.
|
// what the client's processes use: the game is the "Pepper Plugin" one.
|
||||||
|
|||||||
Reference in new issue
Block a user