[GameMode] [MySQL/SQLite] Advance Login & Register System (base script)
#86

It's possible to add another string only for numbers in the "forgot password" dialog, like another step where the user can insert a secret number after insert the answer for the "security question"?

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Advance Login & Register System
MySQL and SQLite - v2.0 - last updated 5th Jan, 2017
  • Dialogs based login and register. There is a limit on login attempts (default is 3) you can edit the limit in script:
    PHP код:
    #define MAX_LOGIN_ATTEMPTS 3
    #define MAX_ACCOUNT_LOCKTIME 2 // in minutes - this is the time interval for locking the account when a user fails to login in Max Attempts given 
    http://i.imgur.com/lD8XDLm.jpg

  • SECURE_PASSWORD_ONLY
    This forces the user to have atleast 1 Lowercase, 1 Highercase and 1 Number in their password while registration or changing password.
    Modify in script:
    PHP код:
    //#define SECURE_PASSWORD_ONLY // this forces the user to have atleast 1 Lowercase, 1 Highercase and 1 Number in their password 
  • Per player based password salts, every player has their own SALT for SHA256 salt.

  • When you are unsure about your login credentials, there is a button "OPTIONS" in login or register dialog:


    • Forgot password: gives a dialog where you can answer your security question and reset password:


      When you answer it right (note: you are given the same number of max tries as given in login)


    • Forgot username: gives a dialog where you can get all the accounts that are registered on your IP Address (it cover IP range)!

  • This is what happens when you fail all login attempts:
    The accounts gets temp locked for the given time "MAX_ACCOUNT_LOCKTIME" only for your IP. in case the original user isn't being abused by fake attempts from other IP.s.

    You can also set the maximum login attempts via setting: (note this value also sets maximum attempts to reset password through answering security question)
    PHP код:
    #define MAX_LOGIN_ATTEMPTS 3 
    Account getting locked (when you fail all 3 attempts):


    When you try to come back right after:


  • /changepass
    Change your account's password. (salt remains the same)


  • /changeques
    Change your account's security question and answer. (salt remains the same)



    You can also add your own questions list by editing this constant array:
    PHP код:
    new const SECURITY_QUESTIONS[][MAX_SECURITY_QUESTION_SIZE] =
    {
        
    "What was your childhood nickname?", ...
    }; 
  • /stats
Download
SQLite Version - https://github.com/Agneese-Saini/SA-...ase/sqlite.pwn
MySQL Version - https://github.com/Agneese-Saini/SA-...base/mysql.pwn

Libraries required:
zcmd.inc - https://sampforum.blast.hk/showthread.php?tid=576114
sscanf2.inc - https://sampforum.blast.hk/showthread.php?tid=602923
easydialog.inc - https://sampforum.blast.hk/showthread.php?tid=602886
kickban.inc - https://github.com/Agneese-Saini/SA-...kickbanfix.inc
Reply


Messages In This Thread
[MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 29.12.2016, 14:36
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by TopShooter - 29.12.2016, 14:39
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by RyderX - 29.12.2016, 15:40
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by RedRex - 29.12.2016, 17:47
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 29.12.2016, 19:43
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by KokyZ - 29.12.2016, 21:20
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 30.12.2016, 03:57
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by TheMaskedGamer - 30.12.2016, 06:22
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by SilverGaming - 30.12.2016, 12:41
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by bogushas - 04.01.2017, 10:15
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 04.01.2017, 10:42
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Stones - 04.01.2017, 10:54
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Wolfe - 04.01.2017, 11:06
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Lordzy - 04.01.2017, 11:07
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Wolfe - 04.01.2017, 11:30
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 04.01.2017, 13:15
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Lordzy - 04.01.2017, 13:21
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by GhostKiller123 - 04.01.2017, 14:27
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by bogushas - 04.01.2017, 15:33
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Bolex_ - 04.01.2017, 19:42
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 05.01.2017, 19:48
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Vince - 05.01.2017, 19:59
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Bolex_ - 06.01.2017, 07:30
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Variable™ - 06.01.2017, 08:35
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Loinal - 06.01.2017, 11:53
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 15.01.2017, 12:36
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Slawiii - 16.01.2017, 17:30
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Hunud - 22.01.2017, 09:52
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Drakey - 22.01.2017, 12:12
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 22.01.2017, 17:48
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by AndreiWow - 23.01.2017, 12:31
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 23.01.2017, 17:11
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Loinal - 24.01.2017, 08:06
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by AndreiWow - 24.01.2017, 20:26
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Chaprnks - 27.01.2017, 22:51
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by mantexx - 07.02.2017, 15:16
Respuesta: [MySQL/SQLite] Advance Login & Register System (base script) - by TheKeviXz - 07.02.2017, 18:23
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Barnwell - 07.02.2017, 20:06
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Younes44 - 08.02.2017, 13:26
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 09.02.2017, 02:20
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Wolfe - 09.02.2017, 04:52
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Immortal99 - 10.02.2017, 16:36
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 10.02.2017, 21:40
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Shadowsea - 01.06.2017, 07:39
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 01.06.2017, 08:10
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by RedRex - 10.06.2017, 17:39
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Bolex_ - 10.06.2017, 17:53
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Matthew57 - 11.06.2017, 01:04
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Antenastyle - 11.06.2017, 19:10
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by F96 - 11.06.2017, 20:15
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by StefaNO [ITA] - 11.06.2017, 20:27
Respuesta: [MySQL/SQLite] Advance Login & Register System (base script) - by Archangelsamp - 11.06.2017, 20:41
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 13.06.2017, 04:41
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by RVNDY - 19.06.2017, 20:43
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 19.06.2017, 21:56
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Cookland - 23.06.2017, 22:10
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by LordFede - 13.07.2017, 05:45
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Yuri8 - 13.07.2017, 08:41
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by luizfeer - 13.07.2017, 13:03
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 13.07.2017, 15:11
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by N0FeaR - 12.09.2017, 16:21
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by henkas - 03.10.2017, 19:18
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 03.10.2017, 19:19
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by RABBIT666 - 09.10.2017, 15:07
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Mr.Vince™ - 09.10.2017, 15:27
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 09.10.2017, 17:06
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Ritzy2K - 12.11.2017, 07:09
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by ItzColaBoi - 30.01.2018, 05:29
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by enzulikeS - 30.01.2018, 15:10
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Sew_Sumi - 30.01.2018, 15:48
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Lovejoy - 30.01.2018, 17:25
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by MarioKamani - 07.04.2018, 08:24
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by RogueDrifter - 07.04.2018, 09:39
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Infin1ty - 27.04.2018, 18:50
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by FuNkYTheGreat - 27.04.2018, 19:01
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Uberanwar - 30.05.2018, 19:42
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Gammix - 30.05.2018, 23:09
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by BrainDamaged - 20.06.2018, 07:10
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Weinz - 20.06.2018, 12:32
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by BrainDamaged - 27.06.2018, 08:07
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Neom - 27.06.2018, 12:45
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Kenton - 24.12.2018, 00:27
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by feheristi97 - 24.12.2018, 22:01
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by DyduShxD - 16.01.2019, 06:15
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by DandYxD - 17.01.2019, 06:18
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by OuDayas - 22.01.2019, 10:52
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Robertsamp - 29.01.2019, 19:23
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by Kincaid - 04.02.2019, 18:20
Re: [MySQL/SQLite] Advance Login & Register System (base script) - by m3shys - 26.02.2019, 22:10

Forum Jump:


Users browsing this thread: 3 Guest(s)