Logged in User Problem


Author
Message
Sachin Saxena
Sachin Saxena
StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)
Group: Forum Members
Posts: 7, Visits: 23
Hi,

 I am new in StrataFrame. I have problem to access the user information from web application.

I created a new user from the RoleBasedSecurity editor and trying to validate by custom login form in .aspx page.

I done the following setting in Global.asax:

DataLayer.DataSources.Add(new SqlDataSourceItem("", "server=ssaxena;integrated security=SSPI;database=StrataFrame"));

MicroFour.StrataFrame.Security.SecurityBasics.IsWebEnvironment = true;

cmdOk_Click:

MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO sfUsers = null;

MicroFour.StrataFrame.Security.Login.LoginResult loResult = MicroFour.StrataFrame.Security.Login.AuthenticateUser("someshv", "jan@123", "", ref sfUsers); [ This userName and password is created in database by security editor ]

if (loResult.Equals(MicroFour.StrataFrame.Security.Login.LoginResult.Success))

Response.Write("Success");

if (loResult.Equals(MicroFour.StrataFrame.Security.Login.LoginResult.Failure))

Response.Write("Failure");

else

Response.Write("Nothing");

 

This returns me always failure. I am not getting any help. Can you tell me where I am wrong? or you can provide me any good documentation(besides StrataFrame doc) or sample application (besides Web Application Sample).


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search