diff --git a/detect_unauthorized_login/README.rst b/detect_unauthorized_login/README.rst new file mode 100644 index 000000000..9cf56829c --- /dev/null +++ b/detect_unauthorized_login/README.rst @@ -0,0 +1,50 @@ +.. 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 automatically captures an image when an incorrect password is entered during login and sends a notification. + +Configuration +============= +openCv must be installed (pip install opencv-python) + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V18) Unnimaya CO, + (V17) Afra MP, + (V16) Fathima Mazlin AM + +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..976cf77c5 --- /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: Unnimaya CO (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# 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..269f170c4 --- /dev/null +++ b/detect_unauthorized_login/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Unnimaya CO (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +############################################################################### +{ + 'name': 'Unauthorized Login Notification And Image Capture', + 'version': '18.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """Automatic image capture while login with wrong password and a + notification is sent.""", + 'description': """This module helps you to 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': ['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': True, +} diff --git a/detect_unauthorized_login/controllers/__init__.py b/detect_unauthorized_login/controllers/__init__.py new file mode 100644 index 000000000..4b9ccbbfd --- /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: Unnimaya CO (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# 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..76bbdfc64 --- /dev/null +++ b/detect_unauthorized_login/controllers/detect_unauthorized_login.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Unnimaya CO (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# along with this program. If not, see . +# +############################################################################### +import base64 +import cv2 +import datetime +import logging +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.home 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 = {key: value for key, value in request.params.items() + if key 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, + {'login': request.params[ + 'login'], + 'password': request.params[ + 'password'], + 'type': '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' + '.mail_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_sudo = request.env['res.users'].sudo().search( + request.env['res.users']._get_login_domain( + request.params['login']), + order=request.env['res.users']._get_login_order(), + limit=1 + ) + template = request.env.ref( + 'detect_unauthorized_login' + '.mail_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..ee06f0b73 --- /dev/null +++ b/detect_unauthorized_login/data/mail_data.xml @@ -0,0 +1,59 @@ + + + + + + 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..cb327dba2 --- /dev/null +++ b/detect_unauthorized_login/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 28.10.2024 +#### Version 18.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..c4dde50ef --- /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: Unnimaya CO (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# 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..58e45192b --- /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: Unnimaya CO (odoo@cybrosys.com) +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# 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/cybro-icon.png b/detect_unauthorized_login/static/description/assets/cybro-icon.png new file mode 100755 index 000000000..06e73e11d Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/cybro-icon.png differ diff --git a/detect_unauthorized_login/static/description/assets/cybro-odoo.png b/detect_unauthorized_login/static/description/assets/cybro-odoo.png new file mode 100755 index 000000000..ed02e07a4 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/cybro-odoo.png differ diff --git a/detect_unauthorized_login/static/description/assets/h2.png b/detect_unauthorized_login/static/description/assets/h2.png new file mode 100755 index 000000000..0bfc4707d Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/h2.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/arrows-repeat.svg b/detect_unauthorized_login/static/description/assets/icons/arrows-repeat.svg new file mode 100755 index 000000000..1d7efabc5 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-1.png b/detect_unauthorized_login/static/description/assets/icons/banner-1.png new file mode 100755 index 000000000..c180db172 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/banner-1.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-2.svg b/detect_unauthorized_login/static/description/assets/icons/banner-2.svg new file mode 100755 index 000000000..e606d97d9 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-bg.png b/detect_unauthorized_login/static/description/assets/icons/banner-bg.png new file mode 100755 index 000000000..a8238d3c0 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/banner-bg.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-bg.svg b/detect_unauthorized_login/static/description/assets/icons/banner-bg.svg new file mode 100755 index 000000000..b1378103e --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-call.svg b/detect_unauthorized_login/static/description/assets/icons/banner-call.svg new file mode 100755 index 000000000..96c687e81 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-mail.svg b/detect_unauthorized_login/static/description/assets/icons/banner-mail.svg new file mode 100755 index 000000000..cbf0d158d --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-pattern.svg b/detect_unauthorized_login/static/description/assets/icons/banner-pattern.svg new file mode 100755 index 000000000..9c1c7e101 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/banner-promo.svg b/detect_unauthorized_login/static/description/assets/icons/banner-promo.svg new file mode 100755 index 000000000..d52791b11 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/brand-pair.svg b/detect_unauthorized_login/static/description/assets/icons/brand-pair.svg new file mode 100755 index 000000000..d8db7fc1e --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 100755 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 100755 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/close-icon.svg b/detect_unauthorized_login/static/description/assets/icons/close-icon.svg new file mode 100755 index 000000000..df8cce37a --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + 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 100755 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/collabarate-icon.svg b/detect_unauthorized_login/static/description/assets/icons/collabarate-icon.svg new file mode 100755 index 000000000..dd4e10518 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + 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 100755 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/cybro-logo.png b/detect_unauthorized_login/static/description/assets/icons/cybro-logo.png new file mode 100755 index 000000000..ff4b78220 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/cybro-logo.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/down.svg b/detect_unauthorized_login/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file 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 100755 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 100755 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/faq.png b/detect_unauthorized_login/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/faq.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/feature-icon.svg b/detect_unauthorized_login/static/description/assets/icons/feature-icon.svg new file mode 100755 index 000000000..fa0ea6850 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/feature.png b/detect_unauthorized_login/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/feature.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/gear.svg b/detect_unauthorized_login/static/description/assets/icons/gear.svg new file mode 100755 index 000000000..0cc66b6ea --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/hero.gif b/detect_unauthorized_login/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..a66905885 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/hero.gif differ diff --git a/detect_unauthorized_login/static/description/assets/icons/hire-odoo.svg b/detect_unauthorized_login/static/description/assets/icons/hire-odoo.svg new file mode 100755 index 000000000..e1ac089b0 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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 100755 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 100755 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/life-ring-icon.svg b/detect_unauthorized_login/static/description/assets/icons/life-ring-icon.svg new file mode 100755 index 000000000..3ae6e1d89 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + 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 100755 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/mail.svg b/detect_unauthorized_login/static/description/assets/icons/mail.svg new file mode 100755 index 000000000..1eedde695 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + 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 100755 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/notes.png b/detect_unauthorized_login/static/description/assets/icons/notes.png new file mode 100755 index 000000000..ee5e95404 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/notes.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/notification icon.svg b/detect_unauthorized_login/static/description/assets/icons/notification icon.svg new file mode 100755 index 000000000..053189973 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/odoo-consultancy.svg b/detect_unauthorized_login/static/description/assets/icons/odoo-consultancy.svg new file mode 100755 index 000000000..e05f65bde --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/odoo-licencing.svg b/detect_unauthorized_login/static/description/assets/icons/odoo-licencing.svg new file mode 100755 index 000000000..2606c88b0 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/odoo-logo.png b/detect_unauthorized_login/static/description/assets/icons/odoo-logo.png new file mode 100755 index 000000000..0e4d0eb5a Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/odoo-logo.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/patter.svg b/detect_unauthorized_login/static/description/assets/icons/patter.svg new file mode 100755 index 000000000..25c9c0a8f --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/pattern1.png b/detect_unauthorized_login/static/description/assets/icons/pattern1.png new file mode 100755 index 000000000..09ab0fb2d Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/pattern1.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 100755 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-piece-icon.svg b/detect_unauthorized_login/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100755 index 000000000..3e9ad9373 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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/replace-icon.svg b/detect_unauthorized_login/static/description/assets/icons/replace-icon.svg new file mode 100755 index 000000000..d0e3a7af1 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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/screenshot-main.png b/detect_unauthorized_login/static/description/assets/icons/screenshot-main.png new file mode 100755 index 000000000..575f8e676 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/screenshot-main.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/screenshot.png b/detect_unauthorized_login/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/screenshot.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 100755 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/skype-fill.svg b/detect_unauthorized_login/static/description/assets/icons/skype-fill.svg new file mode 100755 index 000000000..c17423639 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/skype.png b/detect_unauthorized_login/static/description/assets/icons/skype.png new file mode 100755 index 000000000..51b409fb3 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/skype.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/skype.svg b/detect_unauthorized_login/static/description/assets/icons/skype.svg new file mode 100755 index 000000000..df3dad39b --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/star-1.svg b/detect_unauthorized_login/static/description/assets/icons/star-1.svg new file mode 100755 index 000000000..7e55ab162 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/star-2.svg b/detect_unauthorized_login/static/description/assets/icons/star-2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/detect_unauthorized_login/static/description/assets/icons/support.png b/detect_unauthorized_login/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/support.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/test-1 - Copy.png b/detect_unauthorized_login/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/test-1 - Copy.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/test-1.png b/detect_unauthorized_login/static/description/assets/icons/test-1.png new file mode 100755 index 000000000..0908add2b Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/test-1.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/test-2.png b/detect_unauthorized_login/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..4671fe91e Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/test-2.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 100755 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 100755 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/translate.svg b/detect_unauthorized_login/static/description/assets/icons/translate.svg new file mode 100755 index 000000000..af9c8a1aa --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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 100755 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/video.png b/detect_unauthorized_login/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/video.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/whatsapp.png b/detect_unauthorized_login/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/icons/whatsapp.png differ diff --git a/detect_unauthorized_login/static/description/assets/icons/wrench-icon.svg b/detect_unauthorized_login/static/description/assets/icons/wrench-icon.svg new file mode 100755 index 000000000..174b5a465 --- /dev/null +++ b/detect_unauthorized_login/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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 100755 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/modules/1.png b/detect_unauthorized_login/static/description/assets/modules/1.png new file mode 100644 index 000000000..66ae620a6 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/1.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/2.png b/detect_unauthorized_login/static/description/assets/modules/2.png new file mode 100644 index 000000000..bdfc1f2ee Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/2.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/3.png b/detect_unauthorized_login/static/description/assets/modules/3.png new file mode 100644 index 000000000..b78b04986 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/3.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/4.png b/detect_unauthorized_login/static/description/assets/modules/4.png new file mode 100644 index 000000000..dc2828a73 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/4.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/5.png b/detect_unauthorized_login/static/description/assets/modules/5.png new file mode 100644 index 000000000..bac2f90dd Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/5.png differ diff --git a/detect_unauthorized_login/static/description/assets/modules/6.png b/detect_unauthorized_login/static/description/assets/modules/6.png new file mode 100644 index 000000000..7368b071f Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/6.png differ diff --git a/detect_unauthorized_login/static/description/assets/screenshots/0.png b/detect_unauthorized_login/static/description/assets/screenshots/0.png new file mode 100644 index 000000000..d50d1823b Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/screenshots/0.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..cf7d055d2 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..0d3182fdb 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/4.png b/detect_unauthorized_login/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..f1c4d23fc Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/screenshots/4.png differ diff --git a/detect_unauthorized_login/static/description/assets/y18.jpg b/detect_unauthorized_login/static/description/assets/y18.jpg new file mode 100755 index 000000000..eea1714f2 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/y18.jpg differ diff --git a/detect_unauthorized_login/static/description/banner.jpg b/detect_unauthorized_login/static/description/banner.jpg new file mode 100644 index 000000000..56d55db98 Binary files /dev/null and b/detect_unauthorized_login/static/description/banner.jpg 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..02a5d12a3 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..2567c3cc8 --- /dev/null +++ b/detect_unauthorized_login/static/description/index.html @@ -0,0 +1,1107 @@ + + + + + + Unauthorized Login Notification And Image Capture + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

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

+

Unauthorized Login Notification And Image Capture +

+
+
+ +
+ +
+ +
+
+
+ +
+
+ +
+
+
+
+
+
+
+ This module requires the Python package + opencv-python for image capture functionality. + You can install it using . + Before + installing the module install the python + package + first. The required python packages can be + installed using the + following commands. +
+ pip3 + install opencv-python +
+
+
+
+ +
+
+
+

Key + Highlights

+
+
+
+
+ +
+
+ Auto Capture on Wrong Password +
+

+ Automatically captures an image of anyone + attempting to log in with the wrong + password.

+
+
+
+
+
+ +
+
+ Automatic user notification upon + unauthorised login. +
+

+ Automatically notifies users of unauthorized + login attempts via email alerts for enhanced + security. +

+
+
+ +
+
+
+ Unauthorized Login Notification And Image Capture +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Error Message for Incorrect Password + + Menu +

+
+
+

+ When a user enters an + incorrect + password during login, + an error + message is displayed to + inform + them of the issue. +

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

+ Image Capture + on Incorrect Login Details +

+
+
+

+ When a user enters + incorrect + login details, the + system + captures an image of the + user +

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

+ Email Notifications + + on Incorrect Login Detail. +

+
+
+

+ When a user enters + incorrect + login details, an email + notification is + triggered to + alert the designated + recipients + about the failed login + attempt. +

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

+ Automatically captures + an image + when an incorrect + password is + entered.

+
+ +
+
+
+
+
+
+ +
+

+ Sends instant + notifications to + users or administrators + for + unauthorized login + attempts.

+
+
+
+
+
+
+
+ +
+

+ Saves captured images in + the + model for security + purposes.

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

+ Yes, the + module is + designed to + work + seamlessly + on both + mobile and + desktop + platforms. +

+
+
+ +
+ +
+

+ You may need + to configure + Outgoing + Mail Server + to ensure + notifications + are sent + correctly. +

+
+
+ +
+ +
+

+ No, + currently + the module + not allows + customization + of error + messages. +

+
+
+ +
+ +
+

+ The module + requires the + Python + package + opencv-python + for image + capture + functionality. + You can + install it + using pip3 + install + opencv-python. +

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

+ Latest Release 18.0.1.0.0 +

+ + 28th October, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+
+ +
+
+ .... +
+
+ +
+
+ +
+
+
+ + + + + + 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..b86d3b94b --- /dev/null +++ b/detect_unauthorized_login/views/auto_capture_views.xml @@ -0,0 +1,50 @@ + + + + + auto.capture.view.list + auto.capture + + + + + + + + + + auto.capture.view.form + auto.capture + +
+ + + + + + + + + +
+
+
+ + + Wrong Password + auto.capture + list,form + + + +
\ No newline at end of file