Hi all,
I am a newbie here and to A5, so please bear with me in case I post this new thread on the wrong spot.
I managed to set up the user self registration, including saving additional information in a related table.
Now I try to implement the functionality that a customer receives automatically an email with an activation link, and only if this link is being clicked on, his account gets activated.
For V10, I found this tutorial: Registering Web Users in Alpha Five v10 by Martin Heller, which I thought would be a good guide to do so, suggestion to use ulink. However, I then found this information: http://wiki.alphasoftware.com/Breaking+Changes+V11
If I understand the following text correctly, it is recommended NOT to use ulink in V11 anymore:
Ulink Field
The ulink field is unique to the Alpha Five server security system. The IIS security does not have an equivalent field. Therefore it is recommended to add a UserName (UserId) field to every external table that has user data and save the security UserId in that field. Discontinue the use of the ulink field as it will not be available when running on IIS.
The current UserName (UserId) can be obtained by the A5ws_GetCurrentUser Function and can then be used to find any record in an external database table with a matching UserName. (Don't forget to index this field for efficiency.)
Non-breaking changes of note
Web session variable performance
In Version 11, creating and evaluating session variables are significantly more expensive than creating and evaluating normal variables. Here are a few recommendations:
Don't pass session variables around. If you are passing variables in HTTP Requests or Posts, they should not be session variables.
Could somebody please put me on the right track on how to implement the described functionality in V11? Any guidance would be greatly appreciated.
I am a newbie here and to A5, so please bear with me in case I post this new thread on the wrong spot.
I managed to set up the user self registration, including saving additional information in a related table.
Now I try to implement the functionality that a customer receives automatically an email with an activation link, and only if this link is being clicked on, his account gets activated.
For V10, I found this tutorial: Registering Web Users in Alpha Five v10 by Martin Heller, which I thought would be a good guide to do so, suggestion to use ulink. However, I then found this information: http://wiki.alphasoftware.com/Breaking+Changes+V11
If I understand the following text correctly, it is recommended NOT to use ulink in V11 anymore:
Ulink Field
The ulink field is unique to the Alpha Five server security system. The IIS security does not have an equivalent field. Therefore it is recommended to add a UserName (UserId) field to every external table that has user data and save the security UserId in that field. Discontinue the use of the ulink field as it will not be available when running on IIS.
The current UserName (UserId) can be obtained by the A5ws_GetCurrentUser Function and can then be used to find any record in an external database table with a matching UserName. (Don't forget to index this field for efficiency.)
Non-breaking changes of note
Web session variable performance
In Version 11, creating and evaluating session variables are significantly more expensive than creating and evaluating normal variables. Here are a few recommendations:
Don't pass session variables around. If you are passing variables in HTTP Requests or Posts, they should not be session variables.
Could somebody please put me on the right track on how to implement the described functionality in V11? Any guidance would be greatly appreciated.