@ -64,7 +64,8 @@
< p class = "accent--text text-right caption font-weight-light" >
< p class = "accent--text text-right caption font-weight-light" >
< router -link to = "/user/password/forgot" > { {
< router -link to = "/user/password/forgot" > { {
$t ( 'signin.forget_password' )
$t ( 'signin.forget_password' )
} } < / r o u t e r - l i n k >
} }
< / r o u t e r - l i n k >
< / p >
< / p >
<!-- < vue -recaptcha @verify ="onNormalVerify" sitekey = "6LfbcqMUAAAAAAb_2319UdF8m68JHSYVy_m4wPBx" - - >
<!-- < vue -recaptcha @verify ="onNormalVerify" sitekey = "6LfbcqMUAAAAAAb_2319UdF8m68JHSYVy_m4wPBx" - - >
@ -87,9 +88,9 @@
< b > Sign In < / b >
< b > Sign In < / b >
< / v - b t n >
< / v - b t n >
< br / >
< br / >
< br / >
< br / >
< br / >
< br / >
<!-- Don ' t have an account ? -- >
<!-- Don ' t have an account ? -- >
< p class = "caption font-weight-light" >
< p class = "caption font-weight-light" >
{ { $t ( 'signin.footer_text_1' ) } }
{ { $t ( 'signin.footer_text_1' ) } }
@ -199,7 +200,7 @@
< / v - f o r m >
< / v - f o r m >
< template v-else >
< template v-else >
< br / >
< br / >
< v -alert type = "warning" outlined icon = "mdi-alert" >
< v -alert type = "warning" outlined icon = "mdi-alert" >
<!-- < v -icon color = "warning" > mdi - alert < / v - i c o n > - - >
<!-- < v -icon color = "warning" > mdi - alert < / v - i c o n > - - >
Authentication not configured in configuration
Authentication not configured in configuration
@ -209,7 +210,7 @@
< / v - c o l >
< / v - c o l >
< / v - r o w >
< / v - r o w >
< br / >
< br / >
< / v - c o l >
< / v - c o l >
< / v - r o w >
< / v - r o w >
< / v - c o n t a i n e r >
< / v - c o n t a i n e r >
@ -221,8 +222,9 @@ import Vue from 'vue';
/ / c o n s t { s h e l l } = r e q u i r e ( " e l e c t r o n " ) . r e m o t e . r e q u i r e (
/ / c o n s t { s h e l l } = r e q u i r e ( " e l e c t r o n " ) . r e m o t e . r e q u i r e (
/ / " . / l i b s "
/ / " . / l i b s "
/ / ) ;
/ / ) ;
import { mapGetters , mapActions } from 'vuex' ;
import { mapGetters , mapActions } from 'vuex' ;
import { VueReCaptcha } from 'vue-recaptcha-v3' ;
import { VueReCaptcha } from 'vue-recaptcha-v3' ;
import { isEmail } from "@/helpers" ;
/ / i m p o r t V u e R e c a p t c h a f r o m ' v u e - r e c a p t c h a ' ;
/ / i m p o r t V u e R e c a p t c h a f r o m ' v u e - r e c a p t c h a ' ;
export default {
export default {
@ -243,8 +245,7 @@ export default {
/ / E - m a i l i s r e q u i r e d
/ / E - m a i l i s r e q u i r e d
( v ) => ! ! v || this . $t ( 'signin.form.rules.email_1' ) ,
( v ) => ! ! v || this . $t ( 'signin.form.rules.email_1' ) ,
/ / E - m a i l m u s t b e v a l i d
/ / E - m a i l m u s t b e v a l i d
( v ) =>
( v ) => isEmail ( v ) ||
/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/ . test ( v ) ||
this . $t ( 'signin.form.rules.email_2' ) ,
this . $t ( 'signin.form.rules.email_2' ) ,
] ,
] ,
password : [
password : [
@ -301,7 +302,7 @@ export default {
/ / a w a i t t h i s . $ r e c a p t c h a L o a d e d ( )
/ / a w a i t t h i s . $ r e c a p t c h a L o a d e d ( )
/ / c o n s t r e c a p t c h a T o k e n = a w a i t t h i s . $ r e c a p t c h a ( ' l o g i n ' )
/ / c o n s t r e c a p t c h a T o k e n = a w a i t t h i s . $ r e c a p t c h a ( ' l o g i n ' )
err = await this . $store . dispatch ( 'users/ActSignIn' , { ... this . form } ) ; / / , r e c a p t c h a T o k e n } ) ;
err = await this . $store . dispatch ( 'users/ActSignIn' , { ... this . form } ) ; / / , r e c a p t c h a T o k e n } ) ;
if ( err ) {
if ( err ) {
this . formUtil . formErr = true ;
this . formUtil . formErr = true ;
this . formUtil . formErrMsg = err . data . msg ;
this . formUtil . formErrMsg = err . data . msg ;
@ -364,20 +365,24 @@ export default {
) ;
) ;
} ,
} ,
} ,
} ,
beforeCreated ( ) { } ,
beforeCreated ( ) {
} ,
async created ( ) {
async created ( ) {
/ / t h i s . t y p e = ( a w a i t t h i s . $ s t o r e . d i s p a t c h ( ' u s e r s / A c t G e t A u t h T y p e ' ) ) . t y p e ;
/ / t h i s . t y p e = ( a w a i t t h i s . $ s t o r e . d i s p a t c h ( ' u s e r s / A c t G e t A u t h T y p e ' ) ) . t y p e ;
if ( this . $route . query && this . $route . query . error ) {
if ( this . $route . query && this . $route . query . error ) {
this . $nextTick ( ( ) =>
this . $nextTick ( ( ) =>
this . $toast . error ( this . $route . query . error ) . goAway ( 5000 )
this . $toast . error ( this . $route . query . error ) . goAway ( 5000 )
) ;
) ;
this . $router . replace ( { path : '/user/authentication/signin' } ) ;
this . $router . replace ( { path : '/user/authentication/signin' } ) ;
}
}
} ,
} ,
mounted ( ) { } ,
mounted ( ) {
beforeDestroy ( ) { } ,
} ,
destroy ( ) { } ,
beforeDestroy ( ) {
validate ( { params } ) {
} ,
destroy ( ) {
} ,
validate ( { params } ) {
return true ;
return true ;
} ,
} ,
head ( ) {
head ( ) {