Password field in Login assitant

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
Elzean
Posts: 13
Joined: 11 Jul 2014, 07:24

Password field in Login assitant

Post by Elzean »

Hi!

Is there a way to pick which field i would like to use for the password test during the login ?

For example if i have 2 field "pass1" and "pass2", with this line on the server :
lac.getConfig().passwordField = "pass1";

On the client side i send 1 SFSObject variable "useSecondPass". If "useSecondPass" is true then i would like the login assistant to compare the password with "pass2" instead of "pass1".

Is there a way to do that ?

Thanks.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Password field in Login assitant

Post by Lapo »

I am sorry there isn't.
It would pose lots of security concerns because it essentially would allow the client to control which DB field is used on the server side to check the user credentials.
Malicious hackers would love that :mrgreen:

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Elzean
Posts: 13
Joined: 11 Jul 2014, 07:24

Re: Password field in Login assitant

Post by Elzean »

Ok, well i will deal with it then :p

Thanks for your answer!
Post Reply