summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
Diffstat (limited to 'users/app')
-rw-r--r--users/app/assets/javascripts/users.js.coffee2
-rw-r--r--users/app/controllers/users_controller.rb4
2 files changed, 2 insertions, 4 deletions
diff --git a/users/app/assets/javascripts/users.js.coffee b/users/app/assets/javascripts/users.js.coffee
index 9a2af7a..0595292 100644
--- a/users/app/assets/javascripts/users.js.coffee
+++ b/users/app/assets/javascripts/users.js.coffee
@@ -3,7 +3,7 @@ preventDefault = (event) ->
srp.session = new srp.Session()
srp.signedUp = ->
- srp.login
+ srp.login()
srp.loggedIn = ->
window.location = '/'
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 24db13b..4921a4a 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -22,9 +22,7 @@ class UsersController < ApplicationController
end
def create
- if @user = User.create(params[:user])
- flash[:notice] = t(:user_created_successfully)
- end
+ @user = User.create(params[:user])
respond_with @user
end