From: Lenz Grimmer Date: Thu, 5 Dec 2019 09:46:14 +0000 (+0000) Subject: mgr/dashboard: Check password complexity in Dashboard CLI comm… (#31916) X-Git-Tag: v15.1.0~651 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3bdbf94e4482a1fcace0f7051a5850e742a3a233;p=ceph.git mgr/dashboard: Check password complexity in Dashboard CLI comm… (#31916) mgr/dashboard: Check password complexity in Dashboard CLI commands Reviewed-by: Ricardo Marques Reviewed-by: Tatjana Dehler --- 3bdbf94e4482a1fcace0f7051a5850e742a3a233 diff --cc src/pybind/mgr/dashboard/services/access_control.py index 6bb58e1d54f,a5768a5c69e..e3d1b2e6771 --- a/src/pybind/mgr/dashboard/services/access_control.py +++ b/src/pybind/mgr/dashboard/services/access_control.py @@@ -21,12 -20,9 +21,12 @@@ from ..security import Scope, Permissio from ..exceptions import RoleAlreadyExists, RoleDoesNotExist, ScopeNotValid, \ PermissionNotValid, RoleIsAssociatedWithUser, \ UserAlreadyExists, UserDoesNotExist, ScopeNotInRole, \ - RoleNotInUser + RoleNotInUser, PasswordCheckException +logger = logging.getLogger('access_control') + + # password hashing algorithm def password_hash(password, salt_password=None): if not password: