如何使用 devise_token_auth gem 像设计 url 一样发送 url 恢复配置文件
How send url for recovery profile with devise_token_auth gem like devise url
在我的应用程序中安装了 gem Devise 和 devise_token_auth。
当我请求恢复时 link 然后我收到这个 url 到我的电子邮件:http://localhost:3000/api/v1/auth/password/edit?config=default&redirect_url=&reset_password_token=oYGgW9-ht774ztwiigVy
但我想要这个 url http://localhost:3000/users/password/edit?reset_password_token=8sfhjjfzErYpgUim-UYt
我必须在源代码中更改什么?
edit_password_path(:user)
转换为 edit_user_password_path
此处路径需要与url互换。
希望有用。
在我的应用程序中安装了 gem Devise 和 devise_token_auth。
当我请求恢复时 link 然后我收到这个 url 到我的电子邮件:http://localhost:3000/api/v1/auth/password/edit?config=default&redirect_url=&reset_password_token=oYGgW9-ht774ztwiigVy
但我想要这个 url http://localhost:3000/users/password/edit?reset_password_token=8sfhjjfzErYpgUim-UYt
我必须在源代码中更改什么?
edit_password_path(:user)
转换为 edit_user_password_path
此处路径需要与url互换。
希望有用。