|
@@ -2275,7 +2275,7 @@ class v3LoginView(TemplateView):
|
|
if password_version == 'V1':
|
|
if password_version == 'V1':
|
|
check_flag = check_password(password, users['password'])
|
|
check_flag = check_password(password, users['password'])
|
|
else:
|
|
else:
|
|
- if not iterations and salt:
|
|
|
|
|
|
+ if not all([iterations, salt]):
|
|
return response.json(111)
|
|
return response.json(111)
|
|
password = "%s$%d$%s$%s" % ("pbkdf2_sha256", int(iterations), salt, password)
|
|
password = "%s$%d$%s$%s" % ("pbkdf2_sha256", int(iterations), salt, password)
|
|
check_flag = CommonService.check_password(password, users['password'])
|
|
check_flag = CommonService.check_password(password, users['password'])
|