Questions tagged [devise-recoverable]

33 questions
4
votes
0 answers

Devise Token Auth requiring current_password on password reset

I have config.check_current_password_before_update = :password enabled. So when the user updates his/her password, the current_password field is required. This becomes a problem when implementing password reset because the user does not know his/her…
4
votes
2 answers

devise reset password token invalid

controller def create # admin manually creates user UserMailer.reset_password_instructions(@user).deliver end user.rb class User < ActiveRecord::Base before_create :generate_reset_password_token # generating devise reset token # Include…
przbadu
  • 5,769
  • 5
  • 42
  • 67
2
votes
0 answers

Spectre and Meltdown

Recoverable function of Devise 3.4.1 on Ubuntu 14.xx generates invalid token. Impossible to change the forgotten password. I use vmware and came back to a snapshot without the security update patch of Spectre and Meltdown and I was able to change a…
Pierre
  • 21
  • 5
2
votes
2 answers

Errno::ECONNREFUSED - Connection refused - connect(2) for "localhost" port 25:

I am trying to reset the password with dynamic email server settings in rails 4 using devise. my_mailer.rb class MyMailer < Devise::Mailer helper :application include Devise::Controllers::UrlHelpers default template_path:…
Shilpi Agrawal
  • 595
  • 3
  • 11
  • 26
1
vote
1 answer

ActionController::RoutingError (No route matches [PUT] "/") when updating user password

Hey, guys am stack with updating user password with react front end and devise, plus axios which am using to post that on an api. i have not changed anything from devise but when i hit the api the password is updated and i can use it for login but…
1
vote
0 answers

devise password recovery under multitenancy

An application runs multiple third level domains, which are accessible by an instance variable @site. However, that cannot be set for an environment configuration file config.action_mailer.default_url_options The Devise repository provides no…
Jerome
  • 5,583
  • 3
  • 33
  • 76
1
vote
0 answers

Devise Password Reset find by Email and Subdomain

My App has logins uniqe to each Account, where accounts have a subdomain. I then override the find_for_authentication method in the User model. I got this method from the wiki: This works great for logins. However, user from one subdomain can…
Will
  • 4,498
  • 2
  • 38
  • 65
1
vote
2 answers

Devise - how to check if reset password is token is valid

I'm trying to figure out how I can check if a user reset token is valid BEFORE loading the reset password form. The issue is, currently users don't find out until after they submit. Here is what I have class PasswordsController <…
1
vote
2 answers

Devise with jwt - recoverable reset_password_by_token

I'm working on a Rails API which will authenticate by means of a jwt, and would like the user accounts to be recoverable. Presumably, after receiving their reset token by email, users would supply their new password and the token with a PUT to…
knirirr
  • 1,860
  • 4
  • 23
  • 37
1
vote
0 answers

Devise locale customisation for passwords renewal

I am trying to customise my errors messages in Devise for the password renewal when the user has forgotten their password. I did all translations and customisations right for registrations but for passwords I am a bit struggling. In my…
Maxence
  • 2,029
  • 4
  • 18
  • 37
1
vote
1 answer

Devise Token Auth / Angular2-Token, update password, Completed 401 Unauthorized

I'm having troubles restoring password with devise_token_auth. and Angular2-Token. I'm successfully receiving the email with the link to update my password. But I'm getting an 401 Unauthorized response when submiting the new password. Front end.…
1
vote
0 answers

redirect_url is missing in email instructions sent to the user for password reset

I am trying to build api urls for password reset via. devise_token_auth gem. As per the usage mentioned here, the POST request for /api/v1/auth/password needs params email and redirect_url. The user matching the email param will be sent instructions…
0
votes
0 answers

Rails after_sending_reset_password_instructions_path_for not working

After entering and sending password instruction email via Devise, I want to redirect to home (root) page, not the default log in page. Per instructions on SO, I've edited passwords_controller.rb as follows: class Users::PasswordsController <…
superbot
  • 401
  • 3
  • 19
0
votes
0 answers

ActionController::RoutingError (No route matches [PUT] "/"):

`hey , am trying to implement a reset a password functionality in my app. But am really puzzled up with how am gonna pass this error. am using ruby as my back end with devise gem and react at the front end. the problem is , when i make a put…
0
votes
0 answers

generating a password for login instead of a token

I'm new to Devise. I want that when a user clicks on forgot password link, he should get an email with an auto generated password which a user can use for login in my app, or even get both the auto generated password and a token to reset the…
1
2 3