mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Adjust user signup feedback
This commit is contained in:
committed by
Rob Harrington
parent
7d971fc39d
commit
28ded1f0c2
@@ -10,4 +10,4 @@ Darkswarm.controller "LoginCtrl", ($scope, $http, $window, AuthenticationService
|
||||
$window.location.href = $window.location.origin + $window.location.pathname # Strips out hash fragments
|
||||
.error (data) ->
|
||||
Loading.clear()
|
||||
$scope.errors = data.message
|
||||
$scope.errors = data.message || data.error
|
||||
|
||||
@@ -5,7 +5,7 @@ class UserRegistrationsController < Spree::UserRegistrationsController
|
||||
def create
|
||||
@user = build_resource(params[:spree_user])
|
||||
if resource.save
|
||||
set_flash_message(:success, :signed_up)
|
||||
set_flash_message(:success, :signed_up_but_unconfirmed)
|
||||
session[:spree_user_signup] = true
|
||||
associate_user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user