         $this = $(this).attr 'disabled', 'disabled'
         switch $this.text()
           when login
+            log.debug "Attempting to authorize #{shortener.name}"
             shortener.oauth.authorize ->
+              log.debug "Authorization response for #{shortener.name}...",
+                arguments
               if shortener.oauth.hasToken()
                 $this.text logout
                 analytics.track 'Shorteners', 'Login', shortener.title

      message:  i18n.get 'opt_template_shortcut_invalid'
      selector: '#template_shortcut'
  # Indicate whether or not any validation errors were encountered.
  errors

# Miscellaneous functions

# Perform a *soft* validation without validating the values themselves, instead
# only their existence.
validateImportedTemplate = (template) ->
  log.trace()
  log.debug 'Validating property types of the following template...', template
  'object'  is typeof template          and
  'string'  is typeof template.content  and
  'boolean' is typeof template.enabled  and
