Files
openfoodnetwork/app/assets/javascripts/darkswarm/controllers/registration_controller.js.coffee
2014-09-11 16:34:19 +10:00

6 lines
213 B
CoffeeScript

Darkswarm.controller "RegistrationCtrl", ($scope, $location, AuthenticationService, CurrentUser)->
if CurrentUser is undefined
$location.search('after_login', '/register/')
AuthenticationService.open()