This ain't used anywhere ?

This commit is contained in:
Alexandre Aubin 2018-10-31 18:01:00 +00:00
parent f28df1348d
commit d6053f5eed
2 changed files with 0 additions and 25 deletions

View file

@ -1452,18 +1452,6 @@ tools:
required: True
comment: good_practices_about_admin_password
### tools_validatepw()
validatepw:
action_help: Validate a password
api: PUT /validatepw
arguments:
-p:
full: --password
extra:
password: ask_password
pattern: *pattern_password
required: True
### tools_maindomain()
maindomain:
action_help: Check the current main domain, or change it

View file

@ -144,19 +144,6 @@ def tools_adminpw(auth, new_password):
logger.success(m18n.n('admin_password_changed'))
def tools_validatepw(password):
"""
Validate password
Keyword argument:
password
"""
from yunohost.utils.password import assert_password_is_strong_enough
assert_password_is_strong_enough("user", password)
@is_unit_operation()
def tools_maindomain(operation_logger, auth, new_domain=None):
"""