Author Topic: [BUG]Login rejection  (Read 3322 times)

MON1TOR

  • 68 Carbine
  • Posts: 328
[BUG]Login rejection
« on: June 06, 2015, 12:04:58 PM »
If I try to login with a password (a valid one) wich contains special chars,
like $ - or . and press the 'login' button, a dialog with the text
'Please select a profile and enter the password for it.' or smthng like that shows up. I needed to change my pwd, now it works fine. Any ideas?
« Last Edit: June 06, 2015, 12:55:04 PM by umaster »

xrichardx

  • 68 Carbine
  • Posts: 295
Re: [BUG]Login rejection
« Reply #1 on: June 07, 2015, 08:23:14 AM »
The $ symbol is reserved to access cvars, that causes trouble here. The Login button just executes
Code: [Select]
profile_login $menu_profile_file $menu_profile_pass

where menu_profile_file and menu_profile_pass are cvars you can set above by selecting the profile and typing in a password. The variable names will just be replaced with what these vars contain before executing the command. If your variable contains any reserved special chars (I think the dollar sign ($) and quotation mark (") are the only reserved ASCII chars), this will cause trouble because the game thinks you want to use these with their special meaning altough you want them as plaintext.
For example:
Code: [Select]
menu_profile_file MyAccount
menu_profile_pass $MyPass

profile_login $menu_profile_file $menu_profile_pass
will evaluate to
profile_login MyAccount $MyPass

$MyPass is not set here since you never intended it to be a variable. You can go around that by typing in your password in quotation marks ("). This would result in:

Code: [Select]
menu_profile_file MyAccount
menu_profile_pass "$MyPass"

profile_login $menu_profile_file $menu_profile_pass
will evaluate to
profile_login MyAccount "$MyPass"

Here, the game parses $MyPass as plaintext and does not give an error.

MON1TOR

  • 68 Carbine
  • Posts: 328
Re: [BUG]Login rejection
« Reply #2 on: June 07, 2015, 09:01:19 AM »
Okay, I understand. Thanks! jitspoe, you should add a password field validator to prevent ppl from changing pwds to a pwd with the $ symbol....

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: [BUG]Login rejection
« Reply #3 on: June 07, 2015, 04:03:08 PM »
Thanks for bringing this to my attention.  I'd like to make all special characters allowable.  I wasn't aware there was an issue with $'s.

MON1TOR

  • 68 Carbine
  • Posts: 328
Re: [BUG]Login rejection
« Reply #4 on: June 07, 2015, 10:42:13 PM »
Thanks for bringing this to my attention.  I'd like to make all special characters allowable.  I wasn't aware there was an issue with $'s.
It's okay. I prefer strong passwords, so that would be great
If you could make $s work. In pwds.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: [BUG]Login rejection
« Reply #5 on: June 08, 2015, 10:42:27 PM »
Added to the feature vote so I don't lose track of it:

http://dplogin.com/dplogin/featurevote/feature.php?id=10313

MON1TOR

  • 68 Carbine
  • Posts: 328
Re: [BUG]Login rejection
« Reply #6 on: June 09, 2015, 12:43:42 AM »
Thanks.