diff --git a/password_hint/README.rst b/password_hint/README.rst new file mode 100644 index 000000000..aec51e48c --- /dev/null +++ b/password_hint/README.rst @@ -0,0 +1,44 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/gpl-3.0-standalone.html + :alt: License: AGPL-3 +Password Hint v16 +================================= +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 `__ + +Credits +------- +* Developers: Cybrosys Techno Solutions odoo@cybrosys.com + Version 16: Arjun P Manoj @cybrosys + + +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..186cfb5d8 --- /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: Arjun P Manoj(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 models +from . import controllers diff --git a/password_hint/__manifest__.py b/password_hint/__manifest__.py new file mode 100644 index 000000000..aad7b226c --- /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: Arjun P Manoj(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': '16.0.1.0.0', + 'summary': "This Module Allows To Set An Password Hint", + 'description': "This Module Allows To Set An Password Hint To Remind password", + 'category': 'Extra Tools', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://cybrosys.com/", + 'depends': ['base', 'web', 'auth_signup'], + 'data': ['views/user_password_hint_views.xml', + 'views/password_hint_login_views.xml'], + 'assets': { + 'web.assets_frontend': [ + 'password_hint/static/src/js/password_hint.js', + 'password_hint/static/src/css/password_hint.css' + ], + + }, + '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..a14ddcacb --- /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: Arjun P Manoj(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 main diff --git a/password_hint/controllers/main.py b/password_hint/controllers/main.py new file mode 100644 index 000000000..93752d636 --- /dev/null +++ b/password_hint/controllers/main.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Arjun P Manoj(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.http import request +from odoo.addons.auth_signup.controllers.main import AuthSignupHome +from odoo import http + + +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. + """ + + 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. + + """ + user = request.env['res.users'].sudo().search( + [('login', '=', params)]) + value = user.password_hint + return value diff --git a/password_hint/doc/RELEASE_NOTES.md b/password_hint/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..3d647bc03 --- /dev/null +++ b/password_hint/doc/RELEASE_NOTES.md @@ -0,0 +1,11 @@ +## Module + +#### 08.03.2023 +#### Version 16.0.1.0.0 +#### ADD +Initial Commit Password Hint + + + + + diff --git a/password_hint/models/__init__.py b/password_hint/models/__init__.py new file mode 100644 index 000000000..8334a7107 --- /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: Arjun P Manoj(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 user_password_hint diff --git a/password_hint/models/user_password_hint.py b/password_hint/models/user_password_hint.py new file mode 100644 index 000000000..5250afa31 --- /dev/null +++ b/password_hint/models/user_password_hint.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Arjun P Manoj(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 UserPasswordHint(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..f3c986fc1 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.gif b/password_hint/static/description/assets/modules/2.gif new file mode 100644 index 000000000..beb106101 Binary files /dev/null and b/password_hint/static/description/assets/modules/2.gif 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..2c8fbb83f 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..99298bf4b 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..1c98e213f 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..7cc3625c7 Binary files /dev/null and b/password_hint/static/description/assets/modules/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..ad521e5a2 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/hero.gif differ diff --git a/password_hint/static/description/assets/screenshots/password_hint_01.png b/password_hint/static/description/assets/screenshots/password_hint_01.png new file mode 100644 index 000000000..e13f72492 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/password_hint_01.png differ diff --git a/password_hint/static/description/assets/screenshots/password_hint_02.png b/password_hint/static/description/assets/screenshots/password_hint_02.png new file mode 100644 index 000000000..3ae4f298e Binary files /dev/null and b/password_hint/static/description/assets/screenshots/password_hint_02.png differ diff --git a/password_hint/static/description/assets/screenshots/password_hint_03.png b/password_hint/static/description/assets/screenshots/password_hint_03.png new file mode 100644 index 000000000..4269e5143 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/password_hint_03.png differ diff --git a/password_hint/static/description/assets/screenshots/password_hint_04.png b/password_hint/static/description/assets/screenshots/password_hint_04.png new file mode 100644 index 000000000..9e58a11c9 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/password_hint_04.png differ diff --git a/password_hint/static/description/assets/screenshots/password_hint_05.png b/password_hint/static/description/assets/screenshots/password_hint_05.png new file mode 100644 index 000000000..d952d8f66 Binary files /dev/null and b/password_hint/static/description/assets/screenshots/password_hint_05.png differ diff --git a/password_hint/static/description/banner.png b/password_hint/static/description/banner.png new file mode 100644 index 000000000..8aa4abe6b 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..0855af015 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..729ff3d77 --- /dev/null +++ b/password_hint/static/description/index.html @@ -0,0 +1,545 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Password Hint

+

Set Password Hint for Users To Remember Passwod.

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

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 signing up + . +
+
+ + Helps To Remember Password +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+ +

Set password hint while signing +

+ +
+ +
+ +

+ The password hint field in user form allows the user to set a password hint while signing

+ +
+
+ +

+ Click password hint for showing password hint.Click the button after giving email. +

+ +
+
+

+ If there is a hint in corresponding user form the popup will show the password hint. +

+ +
+
+

+ If there is no hint the pop up will show no hint. +

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

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/css/password_hint.css b/password_hint/static/src/css/password_hint.css new file mode 100644 index 000000000..114385210 --- /dev/null +++ b/password_hint/static/src/css/password_hint.css @@ -0,0 +1,6 @@ +.password-hint-found { + background-color: #b4e6b4; +} +.password-hint-not-found { + background-color: #ffcccc; +} \ 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..5ebbc9c21 --- /dev/null +++ b/password_hint/static/src/js/password_hint.js @@ -0,0 +1,50 @@ +/** + * This module defines a JavaScript file that handles the behavior of the password hint feature on the Odoo login page. + */ +odoo.define('password_hint.login', function (require) { + 'use strict'; + // Import dependencies + const ajax = require('web.ajax'); + const Dialog = require('web.Dialog'); + /** + * Handles the behavior of the password hint feature when the "Password Hint" link is clicked. + */ + $('#Passhint').click(function(){ + var login = $('#login').val(); + if (login){ + ajax.jsonRpc("/website/password/hint", 'call', { + 'params': login + }).then(function(data){ + if(data){ + var passwordHint = data; + var dialog = new Dialog(null, { + title: "Password Hint", + size: 'medium', + $content: $('
', { + html: passwordHint + }), + buttons: [{ + text: "Close", + close: true + }] + }); + dialog.open(); + } + else { + var dialog = new Dialog(null, { + title: "Password Hint", + size: 'medium', + $content: $('
', { + html: "No password hint found." + }), + buttons: [{ + text: "Close", + close: true + }] + }); + dialog.open(); + } + }); + } + }); +}); diff --git a/password_hint/views/password_hint_login_views.xml b/password_hint/views/password_hint_login_views.xml new file mode 100644 index 000000000..a13044d10 --- /dev/null +++ b/password_hint/views/password_hint_login_views.xml @@ -0,0 +1,32 @@ + + + + + + + diff --git a/password_hint/views/user_password_hint_views.xml b/password_hint/views/user_password_hint_views.xml new file mode 100644 index 000000000..f9be5bfca --- /dev/null +++ b/password_hint/views/user_password_hint_views.xml @@ -0,0 +1,16 @@ + + + + + res.users.form.inherit.password.hint + res.users + + + + + + + + + \ No newline at end of file