mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Remove stale form validation messages when showing new confirmation sent message
This commit is contained in:
committed by
Rob Harrington
parent
0ab7d95607
commit
14b73149be
@@ -9,6 +9,7 @@ Darkswarm.controller "SignupCtrl", ($scope, $http, $window, $location, Redirecti
|
||||
|
||||
$scope.submit = ->
|
||||
$http.post("/user/spree_user", {spree_user: $scope.spree_user}).success (data)->
|
||||
$scope.messages = t('devise.user_registrations.spree_user.signed_up_but_unconfirmed')
|
||||
$scope.errors = {email: null, password: null}
|
||||
$scope.messages = t('devise.user_registrations.spree_user.signed_up_but_unconfirmed')
|
||||
.error (data) ->
|
||||
$scope.errors = data
|
||||
|
||||
Reference in New Issue
Block a user