mirror of https://github.com/docusealco/docuseal
				
				
				
			https://github.com/devise-two-factor/devise-two-factor#disabling-automatic-login-after-password-resets thanks Greg Molnarpull/133/head
							parent
							
								
									74bef133b3
								
							
						
					
					
						commit
						c639a3f733
					
				| @ -0,0 +1,13 @@ | |||||||
|  | # frozen_string_literal: true | ||||||
|  | 
 | ||||||
|  | class PasswordsController < Devise::PasswordsController | ||||||
|  |   class Current < ActiveSupport::CurrentAttributes | ||||||
|  |     attribute :user | ||||||
|  |   end | ||||||
|  | 
 | ||||||
|  |   def update | ||||||
|  |     super do |resource| | ||||||
|  |       Current.user = resource | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
					Loading…
					
					
				
		Reference in new issue