Fix routes in emails, redirects

This commit is contained in:
Pranav Raj Sreepuram
2019-08-17 17:50:43 +05:30
parent bacc87ad8c
commit bb87d840e0
3 changed files with 2 additions and 12 deletions

View File

@@ -28,6 +28,6 @@ class ConfirmationsController < Devise::ConfirmationsController
user.reset_password_token = enc
user.reset_password_sent_at = Time.now.utc
user.save(validate: false)
"/auth/password/edit?config=default&redirect_url=&reset_password_token="+raw
"/u/auth/password/edit?config=default&redirect_url=&reset_password_token="+raw
end
end

View File

@@ -69,7 +69,7 @@ export default {
.then((response) => {
Cookies.remove('auth_data');
Cookies.remove('user');
window.location = '/login';
window.location = '/u/login';
resolve(response);
})
.catch((error) => {