diff --git a/detect_unauthorized_login/README.rst b/detect_unauthorized_login/README.rst new file mode 100644 index 000000000..f7eba45f3 --- /dev/null +++ b/detect_unauthorized_login/README.rst @@ -0,0 +1,48 @@ +.. 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 to Automatic image capture while login with wrong password and a notification is sent. + +Configuration +============= +openCv must be needed to install + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V16) Fathima Mazlin AM, (V17) Afra MP + +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..630912d2d --- /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: Afra MP (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..314dc1b92 --- /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: Afra MP (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': '17.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': ['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': True, +} diff --git a/detect_unauthorized_login/controllers/__init__.py b/detect_unauthorized_login/controllers/__init__.py new file mode 100644 index 000000000..d46588a28 --- /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: Afra MP (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..1b175eac9 --- /dev/null +++ b/detect_unauthorized_login/controllers/detect_unauthorized_login.py @@ -0,0 +1,133 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Afra MP (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 = {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..16395dbb3 --- /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..13045c86a --- /dev/null +++ b/detect_unauthorized_login/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 24.06.2024 +#### Version 17.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..8432d0dd0 --- /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: Afra MP (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..2b56afa24 --- /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: Afra MP (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/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/Cybrosys R.png b/detect_unauthorized_login/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/misc/Cybrosys R.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/1.jpg b/detect_unauthorized_login/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/1.jpg differ diff --git a/detect_unauthorized_login/static/description/assets/modules/2.jpg b/detect_unauthorized_login/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..87c2bb2ba Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/2.jpg 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..a5299d338 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..a0ac2d840 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.jpg b/detect_unauthorized_login/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..6a102f103 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/5.jpg differ diff --git a/detect_unauthorized_login/static/description/assets/modules/6.jpg b/detect_unauthorized_login/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..eaf13fef5 Binary files /dev/null and b/detect_unauthorized_login/static/description/assets/modules/6.jpg 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..3404a7761 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..dbcde8e4e 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..39b6d32cd 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..3b0cfc0a1 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.jpg b/detect_unauthorized_login/static/description/banner.jpg new file mode 100644 index 000000000..32e0179d7 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..13aecbc92 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..1a2ffa9fa --- /dev/null +++ b/detect_unauthorized_login/static/description/index.html @@ -0,0 +1,724 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Unauthorized Login Notification And Image Capture

+

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

+
+ +
+
+
+ +
+
+ +
+

+ Overview + + +

+

+ Unauthorized Login Notification And Image Capture.

+
+ +
+
+ This module automatically captures an image upon login + with an incorrect password and sends a notification. +
+
+
+ This module uses an external python dependency + 'cv2'. Before + installing the module install the python + package + first. The required python package can be installed using the + following command, +
+ pip3 install opencv-python + To check it has installed correctly run this command, +
+ python3 -c "import cv2; print(cv2.__version__)" +
+
+ +
+
+ + +
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Auto capture on wrong password

+
+
+
+
+
+
+ +
+
+

+ Automatic user notification upon authorised login.

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

+ An error message is created while entering wrong login + details.

+
+
+
+
+
+
+ + +
+
+

+ While entering wrong login details ,image is captured and + save it to our model.

+
+
+
+
+
+
+ +
+
+

Notification.

+
+
+
+ +
+ +
+
+
    +
  • + Support in Desktop. +
  • +
  • + Community and Enterprise Support. +
  • +
  • + Auto capture on wrong password +
  • +
  • + Authorised login user get mail notification. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on: +
+

+ + Initial Commit for Unauthorized Login Notification And Image Capture.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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