Commit 487911f6 by Heechul Kim

config.js is in porch/quasar/

parent c6543f10
Showing with 0 additions and 22 deletions
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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment