Renamed generate_login_code to make_login_code