From d6053f5eed8b21cbba10a574d26e2a38b40edc77 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 31 Oct 2018 18:01:00 +0000 Subject: [PATCH] This ain't used anywhere ? --- data/actionsmap/yunohost.yml | 12 ------------ src/yunohost/tools.py | 13 ------------- 2 files changed, 25 deletions(-) diff --git a/data/actionsmap/yunohost.yml b/data/actionsmap/yunohost.yml index 102be300d..60f7836d1 100644 --- a/data/actionsmap/yunohost.yml +++ b/data/actionsmap/yunohost.yml @@ -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 diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index c54355c36..5c6ab6f54 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -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): """