Add auth error route
This commit is contained in:
parent
6453424630
commit
74b13d0e15
|
|
@ -34,8 +34,10 @@
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "@/styles/_variables.scss";
|
@import "@/styles/_variables.scss";
|
||||||
|
@import "@/styles/_mixins.scss";
|
||||||
|
|
||||||
.content__instructions {
|
.content__instructions {
|
||||||
margin: $medium-spacing 0;
|
margin: $medium-spacing 0;
|
||||||
|
@include regular-text;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import hello from '@/pages/hello';
|
import hello from '@/pages/hello';
|
||||||
import betaLogin from '@/pages/beta-login';
|
import betaLogin from '@/pages/beta-login';
|
||||||
|
import loginError from '@/pages/login-error';
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
|
|
@ -22,4 +23,30 @@ export default [
|
||||||
public: true,
|
public: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/verify-email',
|
||||||
|
component: loginError,
|
||||||
|
name: 'verifyEmail',
|
||||||
|
props: {
|
||||||
|
title: 'Bitte schauen Sie in Ihr Postfach',
|
||||||
|
errorMessage: 'Ihre E-Mail Adresse ist noch nicht verifiziert. Wir haben eine E-Mail mit einem Aktivierungslink an Sie verschickt.'
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
public: true,
|
||||||
|
layout: 'public',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/unknown-auth-error',
|
||||||
|
component: loginError,
|
||||||
|
name: 'unknownAuthError',
|
||||||
|
props: {
|
||||||
|
title: 'Es ist ein Fehler aufgetreten',
|
||||||
|
errorMessage: 'Es tut uns leid, dass mySkillbox im Moment nicht wie erwartet funktioniert. Bitte versuchen Sie es später nochmals.'
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
public: true,
|
||||||
|
layout: 'public',
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ import submission from '@/pages/studentSubmission';
|
||||||
import Router from 'vue-router';
|
import Router from 'vue-router';
|
||||||
import surveyPage from '@/pages/survey';
|
import surveyPage from '@/pages/survey';
|
||||||
import styleGuidePage from '@/pages/styleguide';
|
import styleGuidePage from '@/pages/styleguide';
|
||||||
import loginError from '@/pages/login-error';
|
|
||||||
import licenseActivation from '@/pages/license-activation';
|
import licenseActivation from '@/pages/license-activation';
|
||||||
import joinClass from '@/pages/joinClass';
|
import joinClass from '@/pages/joinClass';
|
||||||
import news from '@/pages/news';
|
import news from '@/pages/news';
|
||||||
|
|
@ -56,19 +55,6 @@ const routes = [
|
||||||
props: true,
|
props: true,
|
||||||
meta: {layout: LAYOUT_SIMPLE},
|
meta: {layout: LAYOUT_SIMPLE},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/verify-email',
|
|
||||||
component: loginError,
|
|
||||||
name: 'verifyEmail',
|
|
||||||
props: {
|
|
||||||
title: 'Bitte schauen Sie in Ihr Postfach',
|
|
||||||
errorMessage: 'Ihre E-Mail Adresse ist noch nicht verifiziert. Wir haben eine E-Mail mit einem Aktivierungslink an Sie verschickt.'
|
|
||||||
},
|
|
||||||
meta: {
|
|
||||||
public: true,
|
|
||||||
layout: 'public',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/license-activation',
|
path: '/license-activation',
|
||||||
component: licenseActivation,
|
component: licenseActivation,
|
||||||
|
|
@ -98,7 +84,7 @@ const routes = [
|
||||||
}
|
}
|
||||||
return '/';
|
return '/';
|
||||||
default:
|
default:
|
||||||
return '/unknown';
|
return '/unknown-auth-error';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue