Skip to content

Instantly share code, notes, and snippets.

@branan
Created November 28, 2012 00:21
Show Gist options
  • Save branan/4158143 to your computer and use it in GitHub Desktop.
Save branan/4158143 to your computer and use it in GitHub Desktop.
User the_user = load_credentials_from_file();
do {
try {
if (the_user.username.empty()) {
cin >> the_user.username
cin >> the_user.password
}
login(the_user)
} catch (LoginError) {
the_user.username = ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment