我尝试使用ckanext-persona(https://github.com/ckan/ckanext-persona)进行自定义CKAN登录。
首先一切顺利:
成功注册新帐户,所以我有一个随机名称用户loged-in与我当前的电子邮件。但是当我尝试将用户名更改为更人性化时(默认类似于a6f282c6-4c5a-4467-a541-c51fc21e4a4fs
),会发生奇怪的想法:
http://localhost/user/new_user_name?__no_cache__=True
,错误500。我的用户没有直观地登录。完整错误日志https://gist.githubusercontent.com/wide-awake/a80143d5cb4f333a524b/raw/b1af1d82a583863de9d636e868ac808bbc0b0ba6/ckan-persona_username_update_errror "You're already logged in as a6f282c6-4c5a-4467-a541-c51fc21e4a4f. Logout?"
new_user_name
。 我认为更新配置文件时,旧用户名的会话未被销毁。你能指出我正确的方向吗?
每当我点击退出(来自任何用户)时,我得到了#34;退出失败"在正常You are now logged out
之前弹出。
答案 0 :(得分:0)
我在https://github.com/ckan/ckanext-persona/pull/3和https://github.com/ckan/ckanext-persona/pull/5
为我提供了一个修复程序(以及更漂亮的用户名)待审核时,应该不错。
如果你安装了git clone,你可以通过
单独测试它们
git fetch
git checkout 2-use-id-in-session
or
git checkout 4-prettier-usernames
如果我得到积极反馈,我会将它们合并。