YAFLogo

TaNoBi
  • TaNoBi
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
9 years ago
Hi all!

I use login of YAF.

I want to login by url. Format url:http://localhost:42648/yaf_login.aspx?returnurl=%2fdefault.aspx&i="string".

string: encrypted password, username.

when I enter url if username,pass true then go to forum.

I try set Authenticated = true if check string return true. but not go to forum, it stay login.

this.Login1.RememberMeSet = false;

AuthenticateEventArgs auth = new AuthenticateEventArgs();

auth.Authenticated = true;

Login1_Authenticate(this, auth);

LoginCancelEventArgs log = new LoginCancelEventArgs();

Login1_LoggedIn(this, log);

I think I'm still missing something.

Help me, please! Thank!

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
9 years ago
Did you tried to do a manually redirect?

Response.Redirect(this.Login1.DestinationPageUrl);