14 lines
384 B
Python
14 lines
384 B
Python
import re
|
|
from gspylib.common.ErrorCode import ErrorCode
|
|
|
|
class PasswordUtil:
|
|
@staticmethod
|
|
def checkPasswordVaild(password):
|
|
"""
|
|
function: check password vaild
|
|
input : password
|
|
output: NA
|
|
"""
|
|
# check if the password contains illegal characters
|
|
return re.search(r'^[A-Za-z0-9~!@#%^*_=+?,.:/$-]+$', password)
|
|
|