validate passwords and fix home

This commit is contained in:
Josh
2018-06-08 14:44:08 -04:00
parent 520c489e62
commit 4f70c9a8e5
9 changed files with 54 additions and 69 deletions

View File

@ -5,14 +5,14 @@ class UsersController < ApplicationController
# POST /users
def create
user = User.new(user_params)
user.provider = "greenlight"
@user = User.new(user_params)
@user.provider = "greenlight"
if user.save
login(user)
if @user.save
login(@user)
else
# Handle error on user creation.
render :new
end
end