Using your own user table in WebApps: Difference between revisions
From DataFlex Wiki
Jump to navigationJump to search
Using your own user table in WebApps (view source)
Revision as of 16:02, 30 April 2021
, 30 April 2021Minor edit
(Typo) |
(Minor edit) |
||
Line 34: | Line 34: | ||
##Replace the line "Set psLoginName to (Trim(WebAppUser.LoginName))" with "Set psLoginName to (Trim({''YourUserTable''}.{''YourIdColumn''})) | ##Replace the line "Set psLoginName to (Trim(WebAppUser.LoginName))" with "Set psLoginName to (Trim({''YourUserTable''}.{''YourIdColumn''})) | ||
##Replace the line: "Set piUserRights to WebAppUser.Rights" with "Set piUserRights to {''YourUserTable''}.{''YourRightsColumn''} // Optional - if you don't have a rights column, remove the line. Note: if you use an ASCII column, rather than a numeric one for this, you will need to add a different property in the Construct_Object procedure of the class - something like "Property String psUserType" and "Set" that instead | ##Replace the line: "Set piUserRights to WebAppUser.Rights" with "Set piUserRights to {''YourUserTable''}.{''YourRightsColumn''} // Optional - if you don't have a rights column, remove the line. Note: if you use an ASCII column, rather than a numeric one for this, you will need to add a different property in the Construct_Object procedure of the class - something like "Property String psUserType" and "Set" that instead | ||
#Remove all the other methods from your sub-class (they are covered in cWebSessionManagerStandard) : | #Remove all the other methods from your sub-class (they are covered in its super-class cWebSessionManagerStandard): | ||
##CreateSession | ##CreateSession | ||
##ValidateSession | ##ValidateSession |