 
       if options.strategy=='redirect'
         # Don't do an early return to not break promise chain
-        window.location.href=authUrl
+        window.location.href = authUrl
       else
         # Classic Popup Strategy
         module.authHelper(authUrl, providerName)

        throw new Error('Seems like something is wrong in your Hull.login() call, We need a login and password fields to login. Read up here: http://www.hull.io/docs/references/hull_js/#user-signup-and-login') unless options.login? and options.password?

        # Early return since we're leaving the page.
        return post(config.orgUrl+'/api/v1/users/login', 'post', options) if options.strategy=='redirect'

        promise = apiFn('users/login', 'post', _.pick(options, 'login', 'password')).then(refresh)
        evtPromise = promise.then emailLoginComplete, loginFailed

    signup = (user) ->
      apiFn('users', 'post', user).then emailLoginComplete, loginFailed

    postForm = (path, method='post', params={}) ->
      form = document.createElement("form")
      form.setAttribute("method", method)
      form.setAttribute("action", path)

      for key of params
