Remove stale form validation messages when showing new confirmation sent message

This commit is contained in:
Matt-Yorkley
2018-02-06 13:38:40 +00:00
committed by Rob Harrington
parent 0ab7d95607
commit 14b73149be

View File

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