fix MR comments

This commit is contained in:
Bilal
2020-08-03 16:59:33 +02:00
parent acfb3bed70
commit d0ae5898d7
2 changed files with 8 additions and 3 deletions

View File

@@ -16,11 +16,16 @@ class Api::UsersController < Api::ApiController
private
def user_params
params.require(:user).permit(%i[email password])
params.require(:user).permit(%i[
email
password
first_name
last_name
])
end
def verify_custom_token
if token.nil? || token.empty? || token != ENV['CUSTOM_API_TOKEN']
if token.blank? || token != ENV['CUSTOM_API_TOKEN']
unauthorized_entity(:user)
end
end