Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline ThisBytes5  
#1 Posted : Wednesday, September 20, 2017 6:45:51 PM(UTC)
ThisBytes5


Rank: YAF Forumling

Reputation:

Joined: 3/3/2017(UTC)
Posts: 7

I have YAF working with my custom login, but I am not able to figure out how to get the login link to go to my custom login page.

I have set AllowLoginAndLogoff = false in the config, but that just turns off login even though I have the custom login url set. When I go to the forum not logged in I get the following message:

Welcome Guest! You can not login or register.

Is there a way to keep the login link, but have it go to my login page?

Thanks
Sponsor
Offline tha_watcha  
#2 Posted : Thursday, September 21, 2017 7:12:49 AM(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 3/6/2010(UTC)
Posts: 3,736
Germany

Thanks: 70 times
Was thanked: 1149 time(s) in 979 post(s)
The only way would be to modify the source code, your use case can not be handled via a setting
Offline ThisBytes5  
#3 Posted : Friday, September 22, 2017 8:15:59 PM(UTC)
ThisBytes5


Rank: YAF Forumling

Reputation:

Joined: 3/3/2017(UTC)
Posts: 7

Thanks for quick reply.

Any chance this, as well as a log off link, could be added to settings in a future version?
Modifying the code worked, did that last night for login, going to have to look at log off this weekend.
Offline tha_watcha  
#4 Posted : Sunday, September 24, 2017 7:42:33 AM(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 3/6/2010(UTC)
Posts: 3,736
Germany

Thanks: 70 times
Was thanked: 1149 time(s) in 979 post(s)
Originally Posted by: ThisBytes5 Go to Quoted Post
Thanks for quick reply.

Any chance this, as well as a log off link, could be added to settings in a future version?
Modifying the code worked, did that last night for login, going to have to look at log off this weekend.


Well what you could do is, disable only the register link and keep the login/logoff link.

Offline ThisBytes5  
#5 Posted : Sunday, September 24, 2017 3:08:09 PM(UTC)
ThisBytes5


Rank: YAF Forumling

Reputation:

Joined: 3/3/2017(UTC)
Posts: 7

I've disabled the registration did that first, I've modified the code so that the Header login goes where I want it, but it appears that there are multiple places in the code that shows the login link. I'm now finding and modifying those.

I have to have the login link go to login.mysite.com/... rather than using the built in login of the forums as I'm using Microsofts new B2C implementation. So having a place in the settings where I can set the custom login URL would be a great feature for me.

Thanks again for all the help, I'm CLOSE!


To be clear, I found the code below and commented it out, then used my line to hard code the login page, found it in 3 places:

loginLink.NavigateUrl = "https://login.site.com/account/SignUpSignIn?hostname=Forums";

//!this.Get<YafBoardSettings>().UseSSLToLogIn
// ? YafBuildLink.GetLinkNotEscaped(ForumPages.login, returnUrl)
// : YafBuildLink.GetLinkNotEscaped(ForumPages.login, true, returnUrl)
// .Replace("http:", "https:"Wink;

Edited by user Sunday, September 24, 2017 3:13:53 PM(UTC)  | Reason: Not specified

Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error