Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Защищаем вход в админку


Recommended Posts

Решил повторить тему сюда, которую написал вот згдесь 

Написал непотому чтольшой OCMOD для версии 3х для тех кто хочет защитить вход в админку

 

И ик, игдем в файл admin/config.php

 

В люпотому чтом месте прописываем:

define('SET_LOGIN', 'згдесь ваш ключь');

 

Дное качаем ocmod и кидаем его в папку system, игдем в админку и обновляем модификаторы

 

Допустим усиновили ключь икой

define('SET_LOGIN', '456');

 

зналит вход в админку бугдет

ваш сайт/admin/index.php?route=common/login&setlogin=456

или

ваш сайт/admin?setlogin=456

 

Ну собственно всё. Только с учетом данного параметра можно бугдет войти в админку.

set_login.ocmod.xml

  • +1 2
Link to comment
Share on other sites

01.03.2022 в 17:19, Venter сказал:

Допустим усиновили ключь икой

define('SET_LOGIN', '456');

 

Теперь сгделал новый ocmod, можно вводить ключ в настроках магазина, скрин прикрепил

 

set_login_by_settings.ocmod.xml

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.