mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-19 09: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
+6
-1
@@ -420,7 +420,12 @@ ipcMain.handle("captcha", (event, serverUrl, action) => new Promise(resolve => {
|
||||
captchaServer = null;
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user