|
|
@ -5,6 +5,7 @@ class Api::V1::Emails::ConfirmationsController < Api::BaseController
|
|
|
|
before_action -> { doorkeeper_authorize! :write, :'write:accounts' }, except: :check
|
|
|
|
before_action -> { doorkeeper_authorize! :write, :'write:accounts' }, except: :check
|
|
|
|
before_action :require_user_owned_by_application!, except: :check
|
|
|
|
before_action :require_user_owned_by_application!, except: :check
|
|
|
|
before_action :require_user_not_confirmed!, except: :check
|
|
|
|
before_action :require_user_not_confirmed!, except: :check
|
|
|
|
|
|
|
|
before_action :require_authenticated_user!, only: :check
|
|
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
def create
|
|
|
|
current_user.update!(email: params[:email]) if params.key?(:email)
|
|
|
|
current_user.update!(email: params[:email]) if params.key?(:email)
|
|
|
|