diff --git a/detect_unauthorized_login/README.rst b/detect_unauthorized_login/README.rst new file mode 100644 index 000000000..e949b21ea --- /dev/null +++ b/detect_unauthorized_login/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Unauthorized Login Notification And Image Capture +================================================= +This module helps you in Automatic image capture while login with wrong password and a notification is sent. + +Configuration +============= +openCv[4.2.0] must be needed to install + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Lesser General Public License, Version 3 (LGPL-3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developer: (V15) Aysha Shalin, 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/detect_unauthorized_login/__init__.py b/detect_unauthorized_login/__init__.py new file mode 100644 index 000000000..9340114a1 --- /dev/null +++ b/detect_unauthorized_login/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin () +# +# 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 +from . import models diff --git a/detect_unauthorized_login/__manifest__.py b/detect_unauthorized_login/__manifest__.py new file mode 100644 index 000000000..ee8ee76b0 --- /dev/null +++ b/detect_unauthorized_login/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin () +# +# 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': 'Unauthorized Login Notification And Image Capture', + 'version': '15.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Automatic image capture while trying to login with wrong ' + 'password and a notification is sent.', + 'description': 'This module helps you in Automatic image capture while ' + 'login with wrong password and a notification is sent. ' + 'And also stored the details of unauthorised access in ' + 'backend', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'web', 'mail'], + 'data': [ + 'security/ir.model.access.csv', + 'data/mail_data.xml', + 'views/auto_capture_views.xml', + ], + 'external_dependencies': { + 'python': ['cv2'] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/detect_unauthorized_login/controllers/__init__.py b/detect_unauthorized_login/controllers/__init__.py new file mode 100644 index 000000000..6554274ce --- /dev/null +++ b/detect_unauthorized_login/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin () +# +# 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 detect_unauthorized_login diff --git a/detect_unauthorized_login/controllers/detect_unauthorized_login.py b/detect_unauthorized_login/controllers/detect_unauthorized_login.py new file mode 100644 index 000000000..2506daa73 --- /dev/null +++ b/detect_unauthorized_login/controllers/detect_unauthorized_login.py @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin () +# +# 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 base64 +import datetime +import logging + +import cv2 + +import odoo +import odoo.modules.registry +from odoo import http +from odoo.http import request +from odoo.tools.translate import _ + +from odoo.addons.web.controllers.main import Home + +_logger = logging.getLogger(__name__) +# Shared parameters for all login/signup flows +SIGN_UP_REQUEST_PARAMS = {'db', 'login', 'debug', 'token', 'message', 'error', + 'scope', 'mode', 'redirect', 'redirect_hostname', + 'email', 'name', 'partner_id', 'password', + 'confirm_password', 'city', 'country_id', 'lang', + 'signup_email'} +LOGIN_SUCCESSFUL_PARAMS = set() + + +class WrongPassword(Home): + """ While entering wrong password create an error and send mail to the user and also capture the image of + unauthorized user """ + @http.route('/web/login', type='http', auth="none") + def web_login(self, redirect=None, **kw): + """ While entering wrong password an error message is created, + capture the image of user, and send a notification + to authorized user """ + request.params['login_success'] = False + if request.httprequest.method == 'GET' and redirect and request.session.uid: + return request.redirect(redirect) + # simulate hybrid auth=user/auth=public, despite using auth=none to + # be able to redirect users when no db is selected - cfr ensure_db() + if request.env.uid is None: + if request.session.uid is None: + # no user -> auth=public with specific website public user + request.env["ir.http"]._auth_method_public() + else: + request.update_env(user=request.session.uid) + values = {k: v for k, v in request.params.items() + if k in SIGN_UP_REQUEST_PARAMS} + try: + values['databases'] = http.db_list() + except odoo.exceptions.AccessDenied: + values['databases'] = None + if request.httprequest.method == 'POST': + try: + uid = request.session.authenticate(request.db, + request.params['login'], + request.params['password']) + request.params['login_success'] = True + return request.redirect(self._login_redirect(uid, + redirect=redirect)) + except odoo.exceptions.AccessDenied as e: + if e.args == odoo.exceptions.AccessDenied().args: + values['error'] = _("Wrong login/password") + try: + # Capture an image + cap = cv2.VideoCapture(0) + ret, frame = cap.read() + ret, jpeg_image = cv2.imencode('.jpg', frame) + base64_image = base64.b64encode(jpeg_image) + cap.release() + except: + capture = request.env['auto.capture'].sudo().create({ + 'email': request.params['login'], + 'date': datetime.datetime.now(), + }) + User = request.env['res.users'] + user_sudo = User.sudo().search( + User._get_login_domain(request.params['login']), + order=User._get_login_order(), limit=1 + ) + template = request.env.ref( + 'detect_unauthorized_login' + '.email_template_cant_access_camera').with_context( + user=user_sudo.name) + template.sudo().send_mail(capture.id, force_send=True) + else: + capture = request.env['auto.capture'].sudo().create({ + 'email': request.params['login'], + 'date': datetime.datetime.now(), + 'image': base64_image, + }) + User = request.env['res.users'] + user_sudo = User.sudo().search( + User._get_login_domain(request.params['login']), + order=User._get_login_order(), limit=1 + ) + template = request.env.ref( + 'detect_unauthorized_login' + '.email_template_wrong_password').with_context( + user=user_sudo.name) + template.sudo().send_mail(capture.id, force_send=True) + else: + values['error'] = e.args[0] + else: + if 'error' in request.params and request.params.get( + 'error') == 'access': + values['error'] = _( + 'Only employees can access this database. ' + 'Please contact the administrator.') + if 'login' not in values and request.session.get('auth_login'): + values['login'] = request.session.get('auth_login') + if not odoo.tools.config['list_db']: + values['disable_database_manager'] = True + response = request.render('web.login', values) + response.headers['X-Frame-Options'] = 'SAMEORIGIN' + response.headers['Content-Security-Policy'] = "frame-ancestors 'self'" + return response diff --git a/detect_unauthorized_login/data/mail_data.xml b/detect_unauthorized_login/data/mail_data.xml new file mode 100644 index 000000000..e34fff175 --- /dev/null +++ b/detect_unauthorized_login/data/mail_data.xml @@ -0,0 +1,55 @@ + + + + + Detect Unauthorized Login: + Suspicious sign in + + + {{user.company_id.email}} + {{object.email}} + Password Incorrect + +
+

+ Dear , +
+
+ Suspicious sign in attempt to your odoo portal was detected. +
+

+ Regards, +
+ +
+
+
+ + + Detect Unauthorized Login: + Suspicious sign in + + + {{user.company_id.email}} + {{object.email}} + Password Incorrect + +
+

+ Dear , +
+
+ Suspicious sign in attempt to your odoo portal was detected + . Unable to capture image as camera access was denied .. +
+

+ Regards, +
+ +
+
+
+
diff --git a/detect_unauthorized_login/doc/RELEASE_NOTES.md b/detect_unauthorized_login/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..45214c33c --- /dev/null +++ b/detect_unauthorized_login/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 24.06.2024 +#### Version 15.0.1.0.0 +##### ADD +- Initial commit for Unauthorized Login Notification And Image Capture diff --git a/detect_unauthorized_login/models/__init__.py b/detect_unauthorized_login/models/__init__.py new file mode 100644 index 000000000..90dba2ab6 --- /dev/null +++ b/detect_unauthorized_login/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin () +# +# 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 auto_capture diff --git a/detect_unauthorized_login/models/auto_capture.py b/detect_unauthorized_login/models/auto_capture.py new file mode 100644 index 000000000..0642f85aa --- /dev/null +++ b/detect_unauthorized_login/models/auto_capture.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Aysha Shalin () +# +# 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 odoo import fields, models + + +class AutoCapture(models.Model): + """ For storing the details of unauthorized access """ + _name = 'auto.capture' + _description = 'Auto Capture' + _rec_name = "date" + + email = fields.Char(string="Email", help="Mail ID of the user") + image = fields.Binary(string="Image", help="Image Of unauthorized user") + date = fields.Datetime(string="Date & Time", help="Date and Time of " + "unauthorized access") diff --git a/detect_unauthorized_login/security/ir.model.access.csv b/detect_unauthorized_login/security/ir.model.access.csv new file mode 100644 index 000000000..6ab287d1d --- /dev/null +++ b/detect_unauthorized_login/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_auto_capture_user,access.auto.capture.user,model_auto_capture,base.group_user,1,1,1,1 diff --git a/detect_unauthorized_login/static/description/assets/icons/check.png b/detect_unauthorized_login/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/check.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/chevron.png b/detect_unauthorized_login/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/chevron.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/cogs.png b/detect_unauthorized_login/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/cogs.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/consultation.png b/detect_unauthorized_login/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/consultation.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/ecom-black.png b/detect_unauthorized_login/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/ecom-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/education-black.png b/detect_unauthorized_login/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/education-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/hotel-black.png b/detect_unauthorized_login/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/hotel-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/license.png b/detect_unauthorized_login/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/license.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/lifebuoy.png b/detect_unauthorized_login/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/lifebuoy.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/manufacturing-black.png b/detect_unauthorized_login/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/manufacturing-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/pos-black.png b/detect_unauthorized_login/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/pos-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/puzzle.png b/detect_unauthorized_login/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/puzzle.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/restaurant-black.png b/detect_unauthorized_login/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/restaurant-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/service-black.png b/detect_unauthorized_login/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/service-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/trading-black.png b/detect_unauthorized_login/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/trading-black.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/training.png b/detect_unauthorized_login/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/training.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/update.png b/detect_unauthorized_login/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/update.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/user.png b/detect_unauthorized_login/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/user.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/wrench.png b/detect_unauthorized_login/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/wrench.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/categories.png b/detect_unauthorized_login/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/categories.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/check-box.png b/detect_unauthorized_login/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/check-box.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/compass.png b/detect_unauthorized_login/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/compass.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/corporate.png b/detect_unauthorized_login/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/corporate.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/customer-support.png b/detect_unauthorized_login/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/customer-support.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/cybrosys-logo.png b/detect_unauthorized_login/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/cybrosys-logo.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/features.png b/detect_unauthorized_login/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/features.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/logo.png b/detect_unauthorized_login/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/logo.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/pictures.png b/detect_unauthorized_login/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/pictures.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/pie-chart.png b/detect_unauthorized_login/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/pie-chart.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/right-arrow.png b/detect_unauthorized_login/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/right-arrow.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/star.png b/detect_unauthorized_login/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/star.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/support.png b/detect_unauthorized_login/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/support.png differ diff --git a/detect_unauthorized_login/static/description/assets/misc/whatsapp.png b/detect_unauthorized_login/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/whatsapp.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/customer_product_qrcode.png b/detect_unauthorized_login/static/description/assets/modules/customer_product_qrcode.png new file mode 100644 index 000000000..71e2150bb Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/customer_product_qrcode.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/customized_barcode_generator.png b/detect_unauthorized_login/static/description/assets/modules/customized_barcode_generator.png new file mode 100644 index 000000000..e678cb13b Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/customized_barcode_generator.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/employee_dynamic_fields.png b/detect_unauthorized_login/static/description/assets/modules/employee_dynamic_fields.png new file mode 100644 index 000000000..036bc94b5 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/employee_dynamic_fields.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/list_view_sticky_header.png b/detect_unauthorized_login/static/description/assets/modules/list_view_sticky_header.png new file mode 100644 index 000000000..8c155b2ee Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/list_view_sticky_header.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/odoo_website_helpdesk.png b/detect_unauthorized_login/static/description/assets/modules/odoo_website_helpdesk.png new file mode 100644 index 000000000..d4a493e9c Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/odoo_website_helpdesk.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/todo_list.png b/detect_unauthorized_login/static/description/assets/modules/todo_list.png new file mode 100644 index 000000000..e4d1f254a Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/todo_list.png differ diff --git a/detect_unauthorized_login/static/description/assets/screenshots/1.png b/detect_unauthorized_login/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..309344135 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/screenshots/1.png differ diff --git a/detect_unauthorized_login/static/description/assets/screenshots/2.png b/detect_unauthorized_login/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..9ceb32d22 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/screenshots/2.png differ diff --git a/detect_unauthorized_login/static/description/assets/screenshots/3.png b/detect_unauthorized_login/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..3e1464575 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/screenshots/3.png differ diff --git a/detect_unauthorized_login/static/description/assets/screenshots/hero.gif b/detect_unauthorized_login/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..f496f57f2 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/screenshots/hero.gif differ diff --git a/detect_unauthorized_login/static/description/banner.png b/detect_unauthorized_login/static/description/banner.png new file mode 100644 index 000000000..351ac9dc9 Binary files /dev/null and b/detect_unauthorized_login/static/description/banner.png differ diff --git a/detect_unauthorized_login/static/description/icon.png b/detect_unauthorized_login/static/description/icon.png new file mode 100644 index 000000000..3891383b6 Binary files /dev/null and b/detect_unauthorized_login/static/description/icon.png differ diff --git a/detect_unauthorized_login/static/description/index.html b/detect_unauthorized_login/static/description/index.html new file mode 100644 index 000000000..7ab900c66 --- /dev/null +++ b/detect_unauthorized_login/static/description/index.html @@ -0,0 +1,677 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Unauthorized Login Notification And Image Capture

+

+ Automatic image capture while login with wrong password and a + notification is sent.

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module helps you in Automatic image capture while login with wrong + password and a notification is sent. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Community and Enterprise Support. +
+
+ + Auto capture on wrong password +
+
+ + Automatic user notification upon authorised login. +
+
+
+ + +
+
+ +
+

+ Configuration +

+
+
+
+

Opencv [version:4.2.0] need to be + installed.

+

Following steps required to install Opencv in Ubuntu + 20.04:

+

1. $ sudo apt update

+

2. $ sudo apt install libopencv-dev python3-opencv

+

Verify the installation by importing the cv2 module and printing + the OpenCV version:

+

python3 -c "import cv2; print(cv2.__version__)"

+
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ An Error Message is Created while Entering Wrong Login + Details.

+ +
+ +
+

+ While Entering Wrong Login Details, Image is Captured and + Saved it to our model.

+ +
+ +
+

+ Notification is Sent to User Email.

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

+ 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/detect_unauthorized_login/views/auto_capture_views.xml b/detect_unauthorized_login/views/auto_capture_views.xml new file mode 100644 index 000000000..abb5e49b4 --- /dev/null +++ b/detect_unauthorized_login/views/auto_capture_views.xml @@ -0,0 +1,49 @@ + + + + + auto.capture.view.tree + auto.capture + + + + + + + + + + auto.capture.view.form + auto.capture + +
+ + + + + + + + + +
+
+
+ + + Wrong Password + auto.capture + list,form + + + +