我使用的是 SecureSocial 2.0.7,我实现了一个 UserServicePlugin,用户可以登录。我可以停止并重新启动服务器(或重新编译或其他),用户将保持登录状态。
自从升级到 2.0.12 后,登录会话在服务器重新启动时不会持续存在。
我已将调试日志记录添加到UserServicePlugin
. 用户正在saved
登录。但是,当服务器重新启动并且我尝试以以前登录的用户身份访问页面时,我只会在日志中看到:
[info] play - database [default] connected at jdbc:postgresql://localhost/xxxxxx
[info] application - [securesocial] loaded templates plugin: sec.SecureSocialViews
[info] play - Starting application default Akka system.
[info] application - [securesocial] loaded user service: class sec.LoginUserService
[info] application - [securesocial] loaded password hasher bcrypt
[info] application - [securesocial] loaded identity provider: userpass
[info] play - Application started (Dev)
[debug] application - [securesocial] calling deleteExpiredTokens()
[debug] application - deleteExpiredTokens
[debug] application - [securesocial] anonymous user trying to access : '/supplier/requests'
有任何想法吗?我想知道是否出于某种原因,登录 cookie 甚至在检查现有登录会话之前就被核爆了……</p>
我正在使用用户名/密码身份验证。