diff --git a/password_hint/README.rst b/password_hint/README.rst new file mode 100644 index 000000000..6898cc413 --- /dev/null +++ b/password_hint/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/gpl-3.0-standalone.html + :alt: License: AGPL-3 +Password Hint +============= +This module helps you to add a password hint when sign up so that you can use it during login. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +GNU AFFERO GENERAL PUBLIC LICENSE Version 3 (AGPL v3). +(https://www.gnu.org/licenses/gpl-3.0-standalone.html) + +Credits +------- +* Developers: V(14) Mohamed Muzammil VP 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..5135ed6c9 --- /dev/null +++ b/password_hint/__manifest__.py @@ -0,0 +1,45 @@ +# -*- 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': '14.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'This Module Allows To Set An 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': ['base', 'web', 'auth_signup'], + 'data': [ + 'views/assets.xml', + 'views/res_users_views.xml', + 'views/auth_signup_login_templates.xml', + ], + '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..281e277ec --- /dev/null +++ b/password_hint/controllers/password_hint.py @@ -0,0 +1,63 @@ +# -*- 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 password hint if provided. + Args: + *args: Variable-length argument list. + **kw: Keyword arguments. + Returns: + Result of calling the parent method. + """ + res = super(PasswordHint, self).web_auth_signup() + if kw.get('hint'): + user = request.env['res.users'].sudo().search( + [('login', '=', kw['login'])]) + user.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 password hint for a given user login. + Args: + params: JSON object containing user login. + Returns: + JSON response containing 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..9bd0e5d18 --- /dev/null +++ b/password_hint/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 09.01.2024 +#### Version 14.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..a6b5cece3 --- /dev/null +++ b/password_hint/models/res_users.py @@ -0,0 +1,37 @@ +# -*- 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. + Fields: + password_hint (Char): A string field that stores the password hint + provided by users during sign-up. + """ + _inherit = 'res.users' + + password_hint = fields.Char(string='Password Hint', + help='This field stores the password hint ' + 'provided during sign-up.') 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..713d6dee5 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..cb335eb14 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..be440eb23 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..0f0d5d3c2 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..8960b7cb4 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.jpg b/password_hint/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..812dc6a4a Binary files /dev/null and b/password_hint/static/description/assets/modules/6.jpg 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..90114f32d 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..eb3ab5957 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..74ce1c5e0 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..45f7f2fac 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..b815d1c27 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..426230f2b Binary files /dev/null and b/password_hint/static/description/assets/screenshots/5.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..4de74458b 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..65c94ee6d 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..648b38bc2 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..e561ffe4a --- /dev/null +++ b/password_hint/static/description/index.html @@ -0,0 +1,639 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+ + + + + +
+
+ +
+
+
+ +

+ 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 Support. +
+
+ + Set Password reminder when sign 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 +

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file 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..7cb083962 --- /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 #passhint': '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/assets.xml b/password_hint/views/assets.xml new file mode 100644 index 000000000..6cdeb1c07 --- /dev/null +++ b/password_hint/views/assets.xml @@ -0,0 +1,11 @@ + + + +