mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
12 lines
409 B
CoffeeScript
12 lines
409 B
CoffeeScript
Darkswarm.controller "SignupCtrl", ($scope, $http, $location, AuthenticationService) ->
|
|
$scope.path = "/signup"
|
|
$scope.errors =
|
|
email: null
|
|
password: null
|
|
|
|
$scope.submit = ->
|
|
$http.post("/user/spree_user", {spree_user: $scope.spree_user}).success (data)->
|
|
location.href = location.origin + location.pathname # Strips out hash fragments
|
|
.error (data) ->
|
|
$scope.errors = data
|