Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ZeMKI
Mesort
Commits
d96d0c56
Commit
d96d0c56
authored
Jan 27, 2021
by
ZeMKI
Browse files
Update app.js
parent
d21eb091
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/js/app.js
View file @
d96d0c56
...
@@ -54,6 +54,39 @@ Vue.mixin({
...
@@ -54,6 +54,39 @@ Vue.mixin({
return
document
.
URL
.
split
(
'
/
'
).
pop
();
return
document
.
URL
.
split
(
'
/
'
).
pop
();
},
},
},
methods
:
{
},
methods
:
{
checkPassword
()
{
this
.
registration
.
password_length
=
this
.
registration
.
password
.
length
;
const
special_chars
=
/
[
!@#$%^&*()_+
\-
=
\[\]
{};':"
\\
|,.<>
\/
?
]
/
;
if
(
this
.
registration
.
password_length
>
5
)
{
this
.
registration
.
contains_six_characters
=
true
;
}
else
{
this
.
registration
.
contains_six_characters
=
false
;
}
this
.
registration
.
contains_number
=
/
\d
/
.
test
(
this
.
registration
.
password
);
this
.
registration
.
contains_letters
=
/
[
a-z
]
/
.
test
(
this
.
registration
.
password
);
this
.
registration
.
contains_special_character
=
special_chars
.
test
(
this
.
registration
.
password
);
if
(
this
.
registration
.
contains_six_characters
===
true
&&
this
.
registration
.
contains_letters
===
true
&&
this
.
registration
.
contains_number
===
true
)
{
this
.
registration
.
valid_password
=
true
;
}
else
{
this
.
registration
.
valid_password
=
false
;
}
},
copyObject
:
function
(
obj
)
{
copyObject
:
function
(
obj
)
{
let
objCopy
=
obj
.
slice
();
let
objCopy
=
obj
.
slice
();
for
(
let
i
=
0
;
for
(
let
i
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment