diff --git a/user_password_strength/controllers/main.py b/user_password_strength/controllers/main.py index 3b38af7f7..1d78de331 100644 --- a/user_password_strength/controllers/main.py +++ b/user_password_strength/controllers/main.py @@ -32,8 +32,6 @@ LOGIN_SUCCESSFUL_PARAMS.add('account_created') class PasswordSecurity(Home): """overriding the website signup controller""" - @http.route('/web/reset_password', type='http', auth='public', - website=True, sitemap=False) def _prepare_signup_values(self, qcontext): """getting the values from config settings""" values = {key: qcontext.get(key) for key in ('login', 'name', @@ -75,13 +73,7 @@ class PasswordSecurity(Home): raise UserError(_( "*****The Password Should have at least " "one special symbol.")) - - supported_lang_codes = [code for code, _ in - request.env['res.lang'].get_installed()] - lang = request.context.get('lang', '') - if lang in supported_lang_codes: - values['lang'] = lang - return values + return super()._prepare_signup_values(qcontext) @http.route('/web/config_params', type='json', auth="public") def website_get_config_value(self): diff --git a/user_password_strength/doc/RELEASE_NOTES.md b/user_password_strength/doc/RELEASE_NOTES.md index 63f9d51c8..ec2a8b32f 100644 --- a/user_password_strength/doc/RELEASE_NOTES.md +++ b/user_password_strength/doc/RELEASE_NOTES.md @@ -3,4 +3,9 @@ #### 16.02.2023 #### Version 16.0.1.0.0 #### ADD -Initial Commit \ No newline at end of file +Initial Commit + +#### 29.09.2023 +#### Version 16.0.1.0.1 +#### FIX +- Controller inheriting issue \ No newline at end of file