From e2f3feccf0a1fa6bda40cf6d6e6cc24ffb83699a Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Tue, 13 Mar 2018 14:12:34 +0000 Subject: [PATCH] Add comments to authentication_service.js --- .../darkswarm/services/authentication_service.js.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee index 96d52d566b..b504d92c76 100644 --- a/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee +++ b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee @@ -15,6 +15,9 @@ Darkswarm.factory "AuthenticationService", (Navigation, $modal, $location, Redir @selectedPath = path || @selectedPath Navigation.navigate @selectedPath + # Opens the /login tab if returning from email confirmation, + # the /signup tab if opened from the enterprise registration page, + # otherwise opens whichever tab is selected in the URL params ('/login', '/signup', or '/forgot') initialTab: -> if angular.isDefined($location.search()['validation']) '/login' @@ -23,6 +26,7 @@ Darkswarm.factory "AuthenticationService", (Navigation, $modal, $location, Redir else $location.path() + # Loads the registration page modal when needed, otherwise the default modal initialTemplate: -> if location.pathname is '/register/auth' 'registration_authentication.html'