Subject: RE: Sign In Button on Web Page
OK
But would i need to add code to tell it where to go based on if the user enters the password correctly… or incorrectly
there is already text in the computed field in the computed text to give errors… it seems the functions are already there, but do not work… any help please ?
here is the code from the computed text feild on the login form
sDefault := “Please identify yourself:”;
sNotEnough := “%1, you are not authorized to access %2.” + @NewLine + @NewLine + “Please sign in with a name which has sufficient access rights:”;
sInvalid := “You provided an invalid username or password.” + @NewLine + @NewLine + “Please sign in again:”;
sExpired := “Your login has expired. Please sign in again:”;
sOutOfSync := “%1, your login has been invalidated due to a timing issue with the login servers.” + @NewLine + @NewLine + “(The servers may need to have their clocks synchronized to resolve this.)” + @NewLine + @NewLine + “Please sign in again:”;
“—DNT—”;
User := @ProperCase(@Name([CN]; @UserName));
URL := @Right(redirectTo; “/”);
URL := @If(@Contains(URL; “?”); @Left(URL; “?”); URL);
List := User:URL;
@For(n:=1; n<=@Elements(List); n:=n+1;
sNotEnough := @ReplaceSubstring(sNotEnough; “%” + @Text(n); List[n]);
sOutOfSync := @ReplaceSubstring(sOutOfSync; “%” + @Text(n); List[n])
);
@If( reasonType = “0”; sDefault;
reasonType = "1"; sNotEnough;
reasonType = "2"; sInvalid;
reasonType = "3"; sExpired;
reasonType = "4"; sOutOfSync;
sDefault
)