Show provider name instead of ID in auth error message
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
1299b3baf1
commit
20542d3b68
@ -18,7 +18,9 @@
|
|||||||
$t(
|
$t(
|
||||||
"Error while login with {provider}. Retry or login another way.",
|
"Error while login with {provider}. Retry or login another way.",
|
||||||
{
|
{
|
||||||
provider: $route.query.provider,
|
provider:
|
||||||
|
SELECTED_PROVIDERS[$route.query.provider] ||
|
||||||
|
"unknown provider",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}}</b-message
|
}}</b-message
|
||||||
@ -31,7 +33,9 @@
|
|||||||
$t(
|
$t(
|
||||||
"Error while login with {provider}. This login provider doesn't exist.",
|
"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
|
}}</b-message
|
||||||
@ -136,6 +140,7 @@ import {
|
|||||||
initializeCurrentActor,
|
initializeCurrentActor,
|
||||||
NoIdentitiesException,
|
NoIdentitiesException,
|
||||||
saveUserData,
|
saveUserData,
|
||||||
|
SELECTED_PROVIDERS,
|
||||||
} from "../../utils/auth";
|
} from "../../utils/auth";
|
||||||
import { ILogin } from "../../types/login.model";
|
import { ILogin } from "../../types/login.model";
|
||||||
import {
|
import {
|
||||||
@ -198,6 +203,8 @@ export default class Login extends Vue {
|
|||||||
email: validateEmailField,
|
email: validateEmailField,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SELECTED_PROVIDERS = SELECTED_PROVIDERS;
|
||||||
|
|
||||||
submitted = false;
|
submitted = false;
|
||||||
|
|
||||||
mounted(): void {
|
mounted(): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user