We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c0787c commit 42fecf5Copy full SHA for 42fecf5
app/api/authentication_api.rb
@@ -133,6 +133,7 @@ class AuthenticationApi < Grape::API
133
if user.new_record?
134
user.encrypted_password = BCrypt::Password.create(SecureRandom.hex(32))
135
unless user.valid?
136
+ logger.error "User #{user.username} is invalid: #{user.errors.full_messages.join(', ')}"
137
error!(error: 'There was an error creating your account. ' \
138
'Please get in contact with your unit convenor or the ' \
139
'system administrators.')
0 commit comments