From a366e1e909de5c4079661a0392e7f698aaec69a9 Mon Sep 17 00:00:00 2001 From: Sultan1337 <51270951+Sultan1337@users.noreply.github.com> Date: Sun, 7 Jul 2019 09:01:45 -0700 Subject: [PATCH] Update sf-cnr.pwn adds verify check on changepw --- gamemodes/sf-cnr.pwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index ee9c8a8..d58923a 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -2765,7 +2765,7 @@ CMD:labelcolor( playerid, params[ ] ) { new szLabel[ 7 ]; - + if ( sscanf( params, "s[7]", szLabel ) ) return SendUsage( playerid, "/labelcolor [HEX CODE (= normal)]" ); else if ( p_VIPLevel[ playerid ] < VIP_REGULAR ) return SendError( playerid, "You are not a V.I.P, to become one visit "COL_GREY"donate.sfcnr.com" ); else if ( strmatch( szLabel, "normal" ) ) @@ -2794,7 +2794,9 @@ CMD:changepw( playerid, params[ ] ) { static szHashed[ 129 ], szSalt[ 25 ]; - + + if ( p_accountSecurityData[ playerid ] [ E_ID ] && ! p_accountSecurityData[ playerid ] [ E_VERIFIED ] && p_accountSecurityData[ playerid ] [ E_MODE ] != SECURITY_MODE_DISABLED ) + return SendError( playerid, "You must be verified in order to use this feature. "COL_YELLOW"(use /verify)" ); if ( !p_PlayerLogged{ playerid } ) return SendError( playerid, "You are not logged in." ); if ( isnull( params ) ) return SendUsage( playerid, "/change(pw/pass/password) [PASSWORD]" ); if ( strlen( params ) > 24 || strlen( params ) < 3 ) return SendError( playerid, "Your password must be indexed within 3 and 24 characters." );