Lance
Posts: 6
|
| Posted: 05/19/2005, 2:39 PM |
|
I've created a login form using the authentication builder. But after I log in and return to the login screen, the user name and password fields are already populated with my name and I can't change them with a new user.
I've looked at the canned Registration Form that comes with CCS and compared the code and I can't see any difference between that code and mine.
Also, once I've logged in I can't add any more users because I can't log out. I've tried creating a logout with the authentication builder but it doesn't seem to work.
It seems this should be pretty straightforward with the builders but I feel like a dummy. Again.
Thanks,
Lance
|
 |
 |
peterr
Posts: 5971
|
| Posted: 05/19/2005, 2:52 PM |
|
What do you see in your Login Form's "Data Source" property?
As for the logout, it probably works OK but you just need to put Logout=yes in the URL. How else did try logging out?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Lance
Posts: 6
|
| Posted: 05/19/2005, 3:15 PM |
|
Data Source is my database's users table. I see that I can create a query.
As for the logout, I used the application builder to create an Server - AfterInitialize event set to logout. The builder did all the work, as it did in the login form. I didn't realize I had to do anything. I'm pretty sure I did what the tutorial told me to do.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 05/19/2005, 3:25 PM |
|
The data source must be blank. Please delete the users table from there. I am pretty sure that the Auth builder does not place it there, therefore i suspect that you've used a Record builder, or changed it manually ? (I might be wrong).
The Auth builder works fine and creates the logout action correctly. The option that you selected in Auth Builder is probably "Logout Action on this Page" therefore you don't need to do anything else, just use that action. To use it you need to add Logout=yes into the URL.
Keep in mind that you can use Auth Builder to add logout functionality to any page, so it wouldn't be a good idea to logout users just because they visited some Web page.
Please also see: http://docs.codecharge.com/studio/html/Actions/Server/Logout.html http://forums.codecharge.com/posts.php?post_id=46206
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|