Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jijisa
/
porch
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
487911f6
authored
Feb 24, 2017
by
Heechul Kim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
config.js is in porch/quasar/
parent
c6543f10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
quasar/src/config.js
quasar/src/config.js
deleted
100644 → 0
View file @
c6543f10
export
const
API_URL
=
'http://121.254.203.198:8000/api'
export
const
selectOS
=
[
{
label
:
'CENTOS7'
,
value
:
'CENTOS7'
},
{
label
:
'UXENOS'
,
value
:
'UXENOS'
},
{
label
:
'JESSIE'
,
value
:
'JESSIE'
}
]
export
function
checkStrength
(
pw
)
{
// initialize
var
iStrength
=
0
// check length
if
(
pw
.
length
<
8
)
{
return
iStrength
}
if
(
pw
.
length
>
7
)
iStrength
+=
1
if
(
pw
.
length
>
9
)
iStrength
+=
1
if
(
pw
.
match
(
/
[
a-zA-Z
]
/
)
&&
pw
.
match
(
/
[
0-9
]
/
))
iStrength
+=
1
if
(
pw
.
match
(
/
\W
/
))
iStrength
+=
1
return
iStrength
}
Write
Preview
Markdown
is supported
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