I'm creating a custom user storage using the User storage SPI
我正在使用用户存储SPI创建自定义用户存储
My problem here is that that addUser function is not called.
When i try to add a user, the function getUserByNickName
is directly called but do not find any user.
我这里的问题是addUser函数没有被调用。当我尝试添加用户时,函数getUserByNickName被直接调用,但没有找到任何用户。
更多回答
Same problem here.
这里也有同样的问题。
优秀答案推荐
I had the same problem.
我也有同样的问题。
The solution for me was that the getUserByUsername had to throw an error for addUser to be called. So in my case if I returned a 404 from my API if user is not found then addUser was called.
对我来说,解决方案是getUserByNode必须抛出一个错误,以便调用addUser。所以在我的例子中,如果我从我的API返回一个404,如果没有找到用户,那么addUser被调用。
更多回答
我是一名优秀的程序员,十分优秀!