Show provider name instead of ID in auth error message

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-05-02 14:25:55 +02:00
parent 1299b3baf1
commit 20542d3b68
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -18,7 +18,9 @@
$t(
"Error while login with {provider}. Retry or login another way.",
{
provider: $route.query.provider,
provider:
SELECTED_PROVIDERS[$route.query.provider] ||
"unknown provider",
}
)
}}</b-message
@ -31,7 +33,9 @@
$t(
"Error while login with {provider}. This login provider doesn't exist.",
{
provider: $route.query.provider,
provider:
SELECTED_PROVIDERS[$route.query.provider] ||
"unknown provider",
}
)
}}</b-message
@ -136,6 +140,7 @@ import {
initializeCurrentActor,
NoIdentitiesException,
saveUserData,
SELECTED_PROVIDERS,
} from "../../utils/auth";
import { ILogin } from "../../types/login.model";
import {
@ -198,6 +203,8 @@ export default class Login extends Vue {
email: validateEmailField,
};
SELECTED_PROVIDERS = SELECTED_PROVIDERS;
submitted = false;
mounted(): void {