This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Private message count not filled in when using SSO  RSS feed

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When logging in using SSO the jforum code uses



instead of



to get the User object. (called from SSOUtils.userExists, ControllerUtils.refreshSession)

selectByName does not fill in the private message count



and therefore the text 'New Private Messages: (X)' does not show up in the forum header.

(note that it also doesn't get the user groups, is that bad?)

Can this be fixed?
[originally posted on jforum.net by jrouwe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've hacked GenericUserDAO:



(see added comments)

This fixes the bug. It would be nice if this was fixed in a general release too.

(note that I hacked the SQL string straight into the code, but it needs to be changed in the generic_queries.sql file)
[originally posted on jforum.net by jrouwe]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!