FEATURE: new invite acceptance page, where username can be chosen and password can be set

This commit is contained in:
Neil Lalonde
2017-02-13 16:19:41 -05:00
parent 3818c196e0
commit d0fbb27f3e
21 changed files with 511 additions and 175 deletions

View File

@ -438,11 +438,11 @@ class UsersController < ApplicationController
format.json do
if request.put?
if @error || @user&.errors&.any?
if @error || @user.errors&.any?
render json: {
success: false,
message: @error,
errors: @user&.errors&.to_hash,
errors: @user.errors.to_hash,
is_developer: UsernameCheckerService.is_developer?(@user.email)
}
else