Skip to content

Instantly share code, notes, and snippets.

@sjl
Last active December 12, 2015 12:19
Show Gist options
  • Save sjl/4771160 to your computer and use it in GitHub Desktop.
Save sjl/4771160 to your computer and use it in GitHub Desktop.

The problem:

email as username

If there's a "username" field in the HTML form, it's probably the username.

(defn get-username-field [form-fields]
(if (contains? form-fields "username")
"username"
; otherwise the current logic
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment