我尝试使用ckanext persona(https://github.com/ckan/ckanext-persona)进行自定义CKAN登录。
首先,一切顺利:
成功注册新帐户,所以我有一些随机名称的用户登录到我的当前电子邮件。但当我尝试将用户名更改为更人性化(默认值类似于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
登录。你知道吗我认为旧用户名的会话在我更新配置文件时没有被破坏。你能给我指出正确的方向吗?你知道吗
而且每次我点击logout(从任何用户)时,我都会在通常的You are now logged out
之前弹出“logout failed”。你知道吗
我在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
如果我得到正面反馈,我会把它们合并。你知道吗
相关问题 更多 >
编程相关推荐