Adjust user signup feedback

This commit is contained in:
Matt-Yorkley
2017-08-15 13:26:51 +01:00
committed by Rob Harrington
parent 7d971fc39d
commit 28ded1f0c2
4 changed files with 7 additions and 3 deletions

View File

@@ -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

View File

@@ -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