我正在尋找在設計中的定製,如果我們點擊忘記密碼,它應該發送郵件到任何電子郵件ID。無論電子郵件ID是否存在,Gmail中都會發生類似情況。設計發送忘記密碼指令到任何電子郵件編號
屏幕1個
屏幕2
目前我有什麼是這其中它試圖與系統中的有效用戶來驗證。
的Devise,recoverable module需要照顧這個
def send_reset_password_instructions(attributes={})
recoverable = find_or_initialize_with_errors(reset_password_keys, attributes, :not_found)
recoverable.send_reset_password_instructions if recoverable.persisted?
recoverable
end
我怎樣才能刪除此驗證,併發送到任何電子郵件ID電子郵件?
設計控制用戶的存在。什麼是你的設計版本? – emrahbasman
使用Devise 1.5.3 – AnkitG