Page 1 of 1

security.getUserUID() Returns 'null' for Valid User

PostPosted: Fri Jul 06, 2012 2:48 am
by kwpsd
Version: 6.1.0 - build 1418

We recently moved our developement from version 6.0.6 to 6.1.0.

When we attempt to run our application, we get a failure on the login. We determined that the following line of code in the our 'authentication' module is the problem as it returns 'null' instead of the user UID value:

Code: Select all
var userUID = security.getUserUID( userName )

Using the SAS:Users page, we verified that the userName exists and has a UID. We deleted the userName and re-created it, but the problem persists.

The same code works in 6.0.6. Has anyone else come across this behavior in 6.1? Bug?

Re: security.getUserUID() Returns 'null' for Valid User

PostPosted: Wed Oct 10, 2012 11:42 am
by wvitpr
Hi Kim,
Make sure you have the loginForm value set to DEFAULT in the solution Properties, that was it was for me.

Re: security.getUserUID() Returns 'null' for Valid User

PostPosted: Thu Oct 11, 2012 11:35 pm
by kwpsd
Thanks for responding, Phillip.

The property loginForm in our custom login form is set to DEFAULT.

Re: security.getUserUID() Returns 'null' for Valid User

PostPosted: Mon Oct 15, 2012 9:55 am
by rgansevles
Kim,

Please try with the latest 6.1 release.

Rob