diff --git a/password_hint/README.rst b/password_hint/README.rst new file mode 100644 index 000000000..9eed84046 --- /dev/null +++ b/password_hint/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Password Hint +============= +This module helps you to add a password hint when signing up so that you can use it during login. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: (V15) Mohamed Muzammil VP, Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/password_hint/__init__.py b/password_hint/__init__.py new file mode 100644 index 000000000..be69ee693 --- /dev/null +++ b/password_hint/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import controllers +from . import models diff --git a/password_hint/__manifest__.py b/password_hint/__manifest__.py new file mode 100644 index 000000000..4186c6bc7 --- /dev/null +++ b/password_hint/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Password Hint', + 'version': '15.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'This module allows to set a password hint', + 'description': 'Enhance password recovery with a personalized clue for ' + 'your login credentials, ensuring easier recall without ' + 'compromising security.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://cybrosys.com/", + 'depends': ['auth_signup'], + 'data': ['views/res_users_views.xml', + 'views/auth_signup_login_templates.xml'], + 'assets': { + 'web.assets_frontend': [ + 'password_hint/static/src/js/password_hint.js', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/password_hint/controllers/__init__.py b/password_hint/controllers/__init__.py new file mode 100644 index 000000000..4b68f190a --- /dev/null +++ b/password_hint/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import password_hint diff --git a/password_hint/controllers/password_hint.py b/password_hint/controllers/password_hint.py new file mode 100644 index 000000000..663922612 --- /dev/null +++ b/password_hint/controllers/password_hint.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import http +from odoo.http import request +from odoo.addons.auth_signup.controllers.main import AuthSignupHome + + +class PasswordHint(AuthSignupHome): + """A class that handles password hints during user signup and retrieval. + Inherits from AuthSignupHome, a class that provides authentication and + signup functionality for web users in the Odoo web application + framework.""" + @http.route('/web/signup', type='http', auth='public', website=True, + sitemap=False) + def web_auth_signup(self, *args, **kw): + """Handle user signup and set the password hint if provided. + :param args: Variable-length argument list. + :param kw: Keyword arguments. + :return: Result of calling the parent method.""" + res = super(PasswordHint, self).web_auth_signup() + if kw.get('hint'): + request.env['res.users'].sudo().search( + [('login', '=', kw['login'])]).password_hint = kw.get('hint') + return res + + @http.route('/website/password/hint', type='json', auth='public', + website=True) + def button_password_hint(self, params): + """Retrieve the password hint for a given user login. + :param params: JSON object containing user login. + :return: JSON response containing the password hint.""" + return request.env['res.users'].sudo().search([ + ('login', '=', params)]).password_hint diff --git a/password_hint/doc/RELEASE_NOTES.md b/password_hint/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..ce7ec5494 --- /dev/null +++ b/password_hint/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 03.11.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial Commit for Password Hint diff --git a/password_hint/models/__init__.py b/password_hint/models/__init__.py new file mode 100644 index 000000000..270829d88 --- /dev/null +++ b/password_hint/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import res_users diff --git a/password_hint/models/res_users.py b/password_hint/models/res_users.py new file mode 100644 index 000000000..7796bbb6f --- /dev/null +++ b/password_hint/models/res_users.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohamed Muzammil VP (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ResUsers(models.Model): + """This model extends the 'res.users' model to add a 'password_hint' field + that stores the password hint provided by users during sign-up.""" + _inherit = 'res.users' + + password_hint = fields.Char(help='This field stores the password hint ' + 'provided during sign-up.', + string='Password Hint') diff --git a/password_hint/static/description/assets/icons/check.png b/password_hint/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/password_hint/static/description/assets/icons/check.png differ diff --git a/password_hint/static/description/assets/icons/chevron.png b/password_hint/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/password_hint/static/description/assets/icons/chevron.png differ diff --git a/password_hint/static/description/assets/icons/cogs.png b/password_hint/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/password_hint/static/description/assets/icons/cogs.png differ diff --git a/password_hint/static/description/assets/icons/consultation.png b/password_hint/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/password_hint/static/description/assets/icons/consultation.png differ diff --git a/password_hint/static/description/assets/icons/ecom-black.png b/password_hint/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/password_hint/static/description/assets/icons/ecom-black.png differ diff --git a/password_hint/static/description/assets/icons/education-black.png b/password_hint/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/password_hint/static/description/assets/icons/education-black.png differ diff --git a/password_hint/static/description/assets/icons/hotel-black.png b/password_hint/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/password_hint/static/description/assets/icons/hotel-black.png differ diff --git a/password_hint/static/description/assets/icons/license.png b/password_hint/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/password_hint/static/description/assets/icons/license.png differ diff --git a/password_hint/static/description/assets/icons/lifebuoy.png b/password_hint/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/password_hint/static/description/assets/icons/lifebuoy.png differ diff --git a/password_hint/static/description/assets/icons/manufacturing-black.png b/password_hint/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/password_hint/static/description/assets/icons/manufacturing-black.png differ diff --git a/password_hint/static/description/assets/icons/pos-black.png b/password_hint/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/password_hint/static/description/assets/icons/pos-black.png differ diff --git a/password_hint/static/description/assets/icons/puzzle.png b/password_hint/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/password_hint/static/description/assets/icons/puzzle.png differ diff --git a/password_hint/static/description/assets/icons/restaurant-black.png b/password_hint/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/password_hint/static/description/assets/icons/restaurant-black.png differ diff --git a/password_hint/static/description/assets/icons/service-black.png b/password_hint/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/password_hint/static/description/assets/icons/service-black.png differ diff --git a/password_hint/static/description/assets/icons/trading-black.png b/password_hint/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/password_hint/static/description/assets/icons/trading-black.png differ diff --git a/password_hint/static/description/assets/icons/training.png b/password_hint/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/password_hint/static/description/assets/icons/training.png differ diff --git a/password_hint/static/description/assets/icons/update.png b/password_hint/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/password_hint/static/description/assets/icons/update.png differ diff --git a/password_hint/static/description/assets/icons/user.png b/password_hint/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/password_hint/static/description/assets/icons/user.png differ diff --git a/password_hint/static/description/assets/icons/wrench.png b/password_hint/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/password_hint/static/description/assets/icons/wrench.png differ diff --git a/password_hint/static/description/assets/misc/categories.png b/password_hint/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/password_hint/static/description/assets/misc/categories.png differ diff --git a/password_hint/static/description/assets/misc/check-box.png b/password_hint/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/password_hint/static/description/assets/misc/check-box.png differ diff --git a/password_hint/static/description/assets/misc/compass.png b/password_hint/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/password_hint/static/description/assets/misc/compass.png differ diff --git a/password_hint/static/description/assets/misc/corporate.png b/password_hint/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/password_hint/static/description/assets/misc/corporate.png differ diff --git a/password_hint/static/description/assets/misc/customer-support.png b/password_hint/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/password_hint/static/description/assets/misc/customer-support.png differ diff --git a/password_hint/static/description/assets/misc/cybrosys-logo.png b/password_hint/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/password_hint/static/description/assets/misc/cybrosys-logo.png differ diff --git a/password_hint/static/description/assets/misc/features.png b/password_hint/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/password_hint/static/description/assets/misc/features.png differ diff --git a/password_hint/static/description/assets/misc/logo.png b/password_hint/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/password_hint/static/description/assets/misc/logo.png differ diff --git a/password_hint/static/description/assets/misc/pictures.png b/password_hint/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/password_hint/static/description/assets/misc/pictures.png differ diff --git a/password_hint/static/description/assets/misc/pie-chart.png b/password_hint/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/password_hint/static/description/assets/misc/pie-chart.png differ diff --git a/password_hint/static/description/assets/misc/right-arrow.png b/password_hint/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/password_hint/static/description/assets/misc/right-arrow.png differ diff --git a/password_hint/static/description/assets/misc/star.png b/password_hint/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/password_hint/static/description/assets/misc/star.png differ diff --git a/password_hint/static/description/assets/misc/support.png b/password_hint/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/password_hint/static/description/assets/misc/support.png differ diff --git a/password_hint/static/description/assets/misc/whatsapp.png b/password_hint/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/password_hint/static/description/assets/misc/whatsapp.png differ diff --git a/password_hint/static/description/assets/modules/1.png b/password_hint/static/description/assets/modules/1.png new file mode 100644 index 000000000..708718142 Binary files /dev/null and b/password_hint/static/description/assets/modules/1.png differ diff --git a/password_hint/static/description/assets/modules/2.png b/password_hint/static/description/assets/modules/2.png new file mode 100644 index 000000000..72464b121 Binary files /dev/null and b/password_hint/static/description/assets/modules/2.png differ diff --git a/password_hint/static/description/assets/modules/3.png b/password_hint/static/description/assets/modules/3.png new file mode 100644 index 000000000..6bc155887 Binary files /dev/null and b/password_hint/static/description/assets/modules/3.png differ diff --git a/password_hint/static/description/assets/modules/4.png b/password_hint/static/description/assets/modules/4.png new file mode 100644 index 000000000..4fbe85ac1 Binary files /dev/null and b/password_hint/static/description/assets/modules/4.png differ diff --git a/password_hint/static/description/assets/modules/5.png b/password_hint/static/description/assets/modules/5.png new file mode 100644 index 000000000..05f333c07 Binary files /dev/null and b/password_hint/static/description/assets/modules/5.png differ diff --git a/password_hint/static/description/assets/modules/6.png b/password_hint/static/description/assets/modules/6.png new file mode 100644 index 000000000..6f654cfdb Binary files /dev/null and b/password_hint/static/description/assets/modules/6.png differ diff --git a/password_hint/static/description/assets/screenshots/0.png b/password_hint/static/description/assets/screenshots/0.png new file mode 100644 index 000000000..88f71f549 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/0.png differ diff --git a/password_hint/static/description/assets/screenshots/1.png b/password_hint/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..7c963aa55 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/1.png differ diff --git a/password_hint/static/description/assets/screenshots/2.png b/password_hint/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..5c5ca5dfd Binary files /dev/null and b/password_hint/static/description/assets/screenshots/2.png differ diff --git a/password_hint/static/description/assets/screenshots/3.png b/password_hint/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..d83dfc12c Binary files /dev/null and b/password_hint/static/description/assets/screenshots/3.png differ diff --git a/password_hint/static/description/assets/screenshots/4.png b/password_hint/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..df9e3aba2 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/4.png differ diff --git a/password_hint/static/description/assets/screenshots/5.png b/password_hint/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..132797b4f Binary files /dev/null and b/password_hint/static/description/assets/screenshots/5.png differ diff --git a/password_hint/static/description/assets/screenshots/6.png b/password_hint/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..3b2750f9a Binary files /dev/null and b/password_hint/static/description/assets/screenshots/6.png differ diff --git a/password_hint/static/description/assets/screenshots/hero.gif b/password_hint/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..726b55cb3 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/hero.gif differ diff --git a/password_hint/static/description/banner.png b/password_hint/static/description/banner.png new file mode 100644 index 000000000..69b9803bc Binary files /dev/null and b/password_hint/static/description/banner.png differ diff --git a/password_hint/static/description/icon.png b/password_hint/static/description/icon.png new file mode 100644 index 000000000..08a3c820c Binary files /dev/null and b/password_hint/static/description/icon.png differ diff --git a/password_hint/static/description/index.html b/password_hint/static/description/index.html new file mode 100644 index 000000000..860cd8796 --- /dev/null +++ b/password_hint/static/description/index.html @@ -0,0 +1,636 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Password Hint +

+

+ Set Password Hint for Users To Remember Password. +

+ + +
+
+
+
+ +
+
+ +
+

+ Explore This + Module +

+
+ + + +
+
+ +
+

+ Overview +

+
+
+
+ In most password systems, users are required to create a unique and + strong password for security purposes. However, passwords can be + forgotten, especially if they are complex and not frequently used. A + password hint is a feature in password systems that helps users + remember their password. +
+
+ + +
+
+ +
+

+ Features +

+
+
+
+
+ + Community, Enterprise & Odoo.sh Support. +
+
+ + Set Password reminder when signing up + . +
+
+ + Helps To Remember Password +
+
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

Set Password Hint while Signup. +

+ +
+
+

The Password Hint field in user form allows the user to set a + Password Hint. +

+ +
+
+

Click the Password Hint button for showing the Password Hint. +

+ +
+
+

If there is a Password Hint in the corresponding user form, the popup will + show the Password Hint. +

+ +
+
+

If there is no Password Hint, the pop-up will show 'Password Hint not Found' message. +

+ +
+
+

If the Email field is Empty. +

+ +
+
+
+ + +
+
+ +
+

+ Related Products +

+
+
+
+ +
+
+ + +
+
+ +
+

+ Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization +
+
+
+
+ +
+
+ Odoo + Implementation +
+
+
+
+ +
+
+ Odoo + Support +
+
+
+
+ +
+
+ Hire + Odoo + Developer +
+
+
+
+ +
+
+ Odoo + Integration +
+
+
+
+ +
+
+ Odoo + Migration +
+
+
+
+ +
+
+ Odoo + Consultancy +
+
+
+
+ +
+
+ Odoo + Implementation +
+
+
+
+ +
+
+ Odoo + Licensing Consultancy +
+
+
+
+ + +
+
+ +
+

+ Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products +

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience +

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management +

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations +

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages +

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice +

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically +

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application +

+
+
+
+
+ + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch. +

+ +

+ odoo@cybrosys.com +

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707 +

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/password_hint/static/src/js/password_hint.js b/password_hint/static/src/js/password_hint.js new file mode 100644 index 000000000..5b496b621 --- /dev/null +++ b/password_hint/static/src/js/password_hint.js @@ -0,0 +1,78 @@ +odoo.define('password_hint.hint', function (require) { +'use strict'; + /* Import dependencies */ + var publicWidget = require('web.public.widget'); + const ajax = require('web.ajax'); + const Dialog = require('web.Dialog'); + /** + * This widget enhances the behavior of the login form by allowing users to request a password hint + * based on their entered login value (email). It communicates with the server to retrieve the hint + * and displays it in a dialog box. + */ + publicWidget.registry.LoginForm = publicWidget.Widget.extend({ + selector: '.oe_login_form', + events: { + 'change #login': '_onChangeLogin', + 'click #passwordHint': 'OnClickHint', + }, + /** + * Capture login value on change event. + * @param {Event} ev - The event object representing the change. + */ + _onChangeLogin: function (ev){ + var loginValue = '' + this.loginValue = ev.currentTarget.value + }, + /** + * Handle the click event on the password hint button. + * Requests and displays password hint based on login value. + */ + OnClickHint: function () { + //Block executes if there is a value in the Email field + var self = this + if (this.loginValue) { + ajax.jsonRpc("/website/password/hint", 'call', { + 'params': this.loginValue + }).then(function(data) { + if (data) { + //If password hint is found returns the password hint. + var dialog = new Dialog(null, { + title: "Password Hint", + size: 'medium', + $content: "
"+data+"
", + buttons: [{ + text: "Close", + close: true + }] + }); + dialog.open(); + } else { + //Else block to show if the Password Hint is not found for the given Email. + var dialog = new Dialog(null, { + title: "Password Hint", + size: 'medium', + $content: "
"+'Password Hint not Found'+"
", + buttons: [{ + text: "Close", + close: true + }] + }); + dialog.open(); + } + }); + } else { + //Block executes if there is no value found in Email filed. + var dialog = new Dialog(null, { + title: "Password Hint", + size: 'medium', + $content: "
"+'Please Enter the Email'+"
", + buttons: [{ + text: "Close", + close: true + }] + }); + dialog.open(); + } + }, + }); +}); diff --git a/password_hint/views/auth_signup_login_templates.xml b/password_hint/views/auth_signup_login_templates.xml new file mode 100644 index 000000000..d703718f8 --- /dev/null +++ b/password_hint/views/auth_signup_login_templates.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/password_hint/views/res_users_views.xml b/password_hint/views/res_users_views.xml new file mode 100644 index 000000000..e4df70795 --- /dev/null +++ b/password_hint/views/res_users_views.xml @@ -0,0 +1,17 @@ + + + + + res.users.view.form.inherit.password.hint + res.users + + + + + + + + + +