mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
fix NoMethodError on email_verification_request.destory (#700)
This commit is contained in:
@@ -199,7 +199,7 @@ class SessionsController < ApplicationController
|
||||
)
|
||||
|
||||
email_record.destroy!
|
||||
email_verification_request.destroy
|
||||
email_verification_request&.destroy
|
||||
|
||||
redirect_to my_settings_path, notice: "Email unlinked!"
|
||||
rescue ActiveRecord::RecordNotDestroyed => e
|
||||
|
||||
Reference in New Issue
Block a user