mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
This ain't used anywhere ?
This commit is contained in:
parent
f28df1348d
commit
d6053f5eed
2 changed files with 0 additions and 25 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue