diff --git a/password_reset_manager/__init__.py b/password_reset_manager/__init__.py new file mode 100755 index 000000000..7b4bf8780 --- /dev/null +++ b/password_reset_manager/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import controllers diff --git a/password_reset_manager/__manifest__.py b/password_reset_manager/__manifest__.py new file mode 100755 index 000000000..71910b8f3 --- /dev/null +++ b/password_reset_manager/__manifest__.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': "Password Reset Manager", + 'version': '16.0.1.0.0', + 'summary': """User Password Reset Manager""", + 'description': """User Password Reset Manager""", + 'category': 'Technical', + 'author': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'depends': ['auth_signup', 'web'], + 'data': [ + 'views/reset_password.xml', + ], + 'images': ['static/description/banner.png'], + 'license': "AGPL-3", + 'installable': True, + 'application': True, +} diff --git a/password_reset_manager/controllers/__init__.py b/password_reset_manager/controllers/__init__.py new file mode 100644 index 000000000..5ab2c146b --- /dev/null +++ b/password_reset_manager/controllers/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import main \ No newline at end of file diff --git a/password_reset_manager/controllers/main.py b/password_reset_manager/controllers/main.py new file mode 100644 index 000000000..6be6ca148 --- /dev/null +++ b/password_reset_manager/controllers/main.py @@ -0,0 +1,91 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +import logging +import odoo +from odoo import http, _ +from odoo.exceptions import UserError +from odoo.http import request, dispatch_rpc + +_logger = logging.getLogger(__name__) +from odoo.addons.auth_signup.controllers.main import AuthSignupHome +from odoo.addons.web.controllers.database import Database + + +class DatabaseInherit(Database): + @http.route('/web/rest_by_master_pass/submit', type='http', methods=['POST'], auth="public", website=True, + csrf=False) + def change_password_by_master(self, *args, **kw): + values = {} + if kw['confirm_new_password'] == kw['new_password']: + if odoo.tools.config.verify_admin_password(kw['master_password']): + user_valid = request.env['res.users'].sudo().search([('login', '=', kw['user_name'])]) + if user_valid: + query = "update res_users set password='%s' where login='%s'" % ( + kw['confirm_new_password'], kw['user_name']) + request.cr.execute(query) + return request.redirect('/web/login?message=%s' % _('Password Changed')) + else: + values['error'] = _("User Name Is Not Valid") + return request.render('password_reset_manager.forgot_password', values) + + else: + values['error'] = _("Master Password Is Incorrect") + return request.render('password_reset_manager.forgot_password', values) + + else: + values['error'] = _("Password Not Matched") + return request.render('password_reset_manager.forgot_password', values) + + +class AuthSignupHomeInherit(AuthSignupHome): + + @http.route('/web/forgot_password', type='http', auth='public', website=True, sitemap=False, + csrf=False, ) + def forgot_password(self, *args, **kw): + qcontext = self.get_auth_signup_qcontext() + response = request.render('password_reset_manager.forgot_password', qcontext) + return response + + @http.route('/web/reset_password/direct', type='http', auth='public', website=True, sitemap=False, csrf=False, ) + def web_auth_reset_password_direct(self, *args, **kw): + qcontext = self.get_auth_signup_qcontext() + response = request.render('password_reset_manager.reset_password_direct', qcontext) + return response + + @http.route('/web/reset_password/submit', type='http', methods=['POST'], auth="public", website=True, csrf=False) + def change_password(self, *args, **kw): + values = {} + if kw['confirm_new_password'] == kw['new_password']: + try: + uid = request.session.authenticate(request.session.db, kw['user_name'], + kw['old_password']) + user = request.env['res.users'].search([('id', '=', uid)]) + user.password = kw['confirm_new_password'] + return request.redirect('/web/login?message=%s' % _('Password Changed')) + + except odoo.exceptions.AccessDenied as e: + values['error'] = _("Login or Password Is Incorrect") + return request.render('password_reset_manager.reset_password_direct', values) + else: + values['error'] = _("Password Not Match") + return request.render('password_reset_manager.reset_password_direct', values) diff --git a/password_reset_manager/doc/RELEASE_NOTES.md b/password_reset_manager/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..160a70f03 --- /dev/null +++ b/password_reset_manager/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module + +#### 21.12.2022 +#### Version 16.0.1.0.0 +#### ADD diff --git a/password_reset_manager/static/description/assets/icons/insta_feed_snippet_icon.png b/password_reset_manager/static/description/assets/icons/insta_feed_snippet_icon.png new file mode 100644 index 000000000..9af668a31 Binary files /dev/null and b/password_reset_manager/static/description/assets/icons/insta_feed_snippet_icon.png differ diff --git a/password_reset_manager/static/description/assets/misc/categories.png b/password_reset_manager/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/categories.png differ diff --git a/password_reset_manager/static/description/assets/misc/check-box.png b/password_reset_manager/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/check-box.png differ diff --git a/password_reset_manager/static/description/assets/misc/compass.png b/password_reset_manager/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/compass.png differ diff --git a/password_reset_manager/static/description/assets/misc/corporate.png b/password_reset_manager/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/corporate.png differ diff --git a/password_reset_manager/static/description/assets/misc/customer-support.png b/password_reset_manager/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/customer-support.png differ diff --git a/password_reset_manager/static/description/assets/misc/cybrosys-logo.png b/password_reset_manager/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/cybrosys-logo.png differ diff --git a/password_reset_manager/static/description/assets/misc/features.png b/password_reset_manager/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/features.png differ diff --git a/password_reset_manager/static/description/assets/misc/logo.png b/password_reset_manager/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/logo.png differ diff --git a/password_reset_manager/static/description/assets/misc/pictures.png b/password_reset_manager/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/pictures.png differ diff --git a/password_reset_manager/static/description/assets/misc/pie-chart.png b/password_reset_manager/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/pie-chart.png differ diff --git a/password_reset_manager/static/description/assets/misc/right-arrow.png b/password_reset_manager/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/right-arrow.png differ diff --git a/password_reset_manager/static/description/assets/misc/star.png b/password_reset_manager/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/star.png differ diff --git a/password_reset_manager/static/description/assets/misc/support.png b/password_reset_manager/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/support.png differ diff --git a/password_reset_manager/static/description/assets/misc/whatsapp.png b/password_reset_manager/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/password_reset_manager/static/description/assets/misc/whatsapp.png differ diff --git a/password_reset_manager/static/description/assets/modules/1.png b/password_reset_manager/static/description/assets/modules/1.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/password_reset_manager/static/description/assets/modules/1.png differ diff --git a/password_reset_manager/static/description/assets/modules/2.png b/password_reset_manager/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/password_reset_manager/static/description/assets/modules/2.png differ diff --git a/password_reset_manager/static/description/assets/modules/3.png b/password_reset_manager/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/password_reset_manager/static/description/assets/modules/3.png differ diff --git a/password_reset_manager/static/description/assets/modules/4.png b/password_reset_manager/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/password_reset_manager/static/description/assets/modules/4.png differ diff --git a/password_reset_manager/static/description/assets/modules/5.gif b/password_reset_manager/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/password_reset_manager/static/description/assets/modules/5.gif differ diff --git a/password_reset_manager/static/description/assets/modules/6.png b/password_reset_manager/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/password_reset_manager/static/description/assets/modules/6.png differ diff --git a/password_reset_manager/static/description/assets/screenshots/hero.gif b/password_reset_manager/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..17299371b Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/hero.gif differ diff --git a/password_reset_manager/static/description/assets/screenshots/password_1.png b/password_reset_manager/static/description/assets/screenshots/password_1.png new file mode 100644 index 000000000..31fa93e2a Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/password_1.png differ diff --git a/password_reset_manager/static/description/assets/screenshots/password_2.png b/password_reset_manager/static/description/assets/screenshots/password_2.png new file mode 100644 index 000000000..03e04ee7d Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/password_2.png differ diff --git a/password_reset_manager/static/description/assets/screenshots/password_3.png b/password_reset_manager/static/description/assets/screenshots/password_3.png new file mode 100644 index 000000000..12e224f0f Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/password_3.png differ diff --git a/password_reset_manager/static/description/assets/screenshots/password_4.png b/password_reset_manager/static/description/assets/screenshots/password_4.png new file mode 100644 index 000000000..c1eeba424 Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/password_4.png differ diff --git a/password_reset_manager/static/description/assets/screenshots/password_5.png b/password_reset_manager/static/description/assets/screenshots/password_5.png new file mode 100644 index 000000000..a1aeb43b7 Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/password_5.png differ diff --git a/password_reset_manager/static/description/assets/screenshots/password_6.png b/password_reset_manager/static/description/assets/screenshots/password_6.png new file mode 100644 index 000000000..5fb357f82 Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/password_6.png differ diff --git a/password_reset_manager/static/description/assets/screenshots/password_7.png b/password_reset_manager/static/description/assets/screenshots/password_7.png new file mode 100644 index 000000000..abc0302a3 Binary files /dev/null and b/password_reset_manager/static/description/assets/screenshots/password_7.png differ diff --git a/password_reset_manager/static/description/banner.png b/password_reset_manager/static/description/banner.png new file mode 100644 index 000000000..638aa2e68 Binary files /dev/null and b/password_reset_manager/static/description/banner.png differ diff --git a/password_reset_manager/static/description/icon.png b/password_reset_manager/static/description/icon.png new file mode 100644 index 000000000..34881dfa6 Binary files /dev/null and b/password_reset_manager/static/description/icon.png differ diff --git a/password_reset_manager/static/description/index.html b/password_reset_manager/static/description/index.html new file mode 100644 index 000000000..be7821274 --- /dev/null +++ b/password_reset_manager/static/description/index.html @@ -0,0 +1,551 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

Password + Reset Manager

+

Reset User Password using Master Password / Current Password + +

+ + +
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This odoo app help odoo users to change their login password and help admin to change users login password + without login into odoo. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ +
+ Change login password by verifying current password without login into odoo. + +
+
+
+ +
+ Reset login password by verifying master password without login into odoo. + +
+
+
+ +
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Settings

+

Enable password reset + option in odoo general settings

+ +
+ +
+

Login Page

+

In login page you will + get option's change and reset login password.

+ +
+ +
+

Change Password + Form

+ +
+
+

Reset Password + Form

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

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_reset_manager/views/reset_password.xml b/password_reset_manager/views/reset_password.xml new file mode 100644 index 000000000..f9e134ffb --- /dev/null +++ b/password_reset_manager/views/reset_password.xml @@ -0,0 +1,94 @@ + + + + + + \ No newline at end of file