mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-27 13:48:51 +01:00
fix: fixed missing keys for the button
This commit is contained in:
parent
a0c4ddaf9e
commit
e9e2917042
2 changed files with 4 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ const PasskeyAuth: React.FC<PasskeyAuthProps> = ({ mode, onBack }) => {
|
|||
});
|
||||
const result = await loginCallbackResponse.json();
|
||||
if (result.user) {
|
||||
alert(localize('com_auth_passkey_login_success'));
|
||||
// alert(localize('com_auth_passkey_login_success'));
|
||||
window.location.href = '/';
|
||||
} else {
|
||||
throw new Error(
|
||||
|
|
@ -180,7 +180,7 @@ const PasskeyAuth: React.FC<PasskeyAuthProps> = ({ mode, onBack }) => {
|
|||
});
|
||||
const result = await registerCallbackResponse.json();
|
||||
if (result.user) {
|
||||
alert(localize('com_auth_passkey_register_success'));
|
||||
// alert(localize('com_auth_passkey_register_success'));
|
||||
window.location.href = '/login';
|
||||
} else {
|
||||
throw new Error(
|
||||
|
|
|
|||
|
|
@ -792,6 +792,8 @@
|
|||
"com_auth_passkey_register_success": "Successfully registered with passkey",
|
||||
"com_auth_passkey_login_success": "Successfully logged in with passkey",
|
||||
"com_auth_passkey_try_again": "Please try again",
|
||||
"com_auth_passkey_login": "Login with Passkey",
|
||||
"com_auth_passkey_register": "Register with Passkey",
|
||||
"com_nav_settings_passkey_label_id": "ID:",
|
||||
"com_nav_settings_passkey_label_public_key": "Public Key:",
|
||||
"com_nav_settings_passkey_label_usage_counter": "Usage Counter:",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue