Homeland sso 登陆时候,当用户名为中文时候,就提示错误,有没遇到相同问题

unrelaxs · December 18, 2017 · Last by unrelaxs replied at December 20, 2017 · 3449 hits

是不是 email 有做格式验证?比如 args[:user].name = '你好'的时候,那岂不是 email 等于 %e4%bd%a0%e5%a5%[email protected]

你给个正确的 Email 不就可以了么,username 也是,为何给一个字母 + 数字格式的?

在 homeland 的 user 模型,加上了中文正则,,并且改了下 sso 的 email,username,,还是报这个错误

其中上面的代码 sso.email = "#{email}@jxcat.com"已修正过来,,发现是新增的用户都会报这个错误,用以前的旧账户登陆却没问题的

搞定了,原来是 sso.external_id 冲突导致

You need to Sign in before reply, if you don't have an account, please Sign up first.