Create a gist now

Instantly share code, notes, and snippets.

@user = User.find_by_username('foobar')
@user.reset_persistence_token
//login functionality here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment