lib/generators/authkit/templates/app/controllers/signup_controller.rb in authkit-0.4.0 vs lib/generators/authkit/templates/app/controllers/signup_controller.rb in authkit-0.5.0
- old
+ new
@@ -1,6 +1,8 @@
class SignupController < ApplicationController
+ <% if oauth? %>include AuthsHelper
+ <% end %>
respond_to :html, :json
# Create a new Signup form model (found in app/forms/signup.rb)
def new
@signup = Signup.new
@@ -30,11 +32,11 @@
protected
def signup_params
params.require(:signup).permit(
:email,
- :username,
- :password,
+ <% if username? %>:username,
+ <% end %>:password,
:password_confirmation,
:first_name,
:last_name,
:bio,
:website,