Skip to content

Commit

Permalink
Merge pull request #287 from kmyk/issue/276a
Browse files Browse the repository at this point in the history
#276: add a message to tell the option that login with session tokens
  • Loading branch information
kmyk authored Feb 1, 2019
2 parents 45399c6 + 60b7ee7 commit efc9382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onlinejudge/implementation/command/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ def get_credentials() -> Tuple[str, str]:
args.password = getpass.getpass()
return args.username, args.password

log.warning('If you don\'t want to give your password to this program, you can give only your session tokens.')
log.info('see: https://github.com/kmyk/online-judge-tools/blob/master/LOGIN_WITH_COOKIES.md')

with utils.with_cookiejar(utils.new_default_session(), path=args.cookie) as sess:
service.login(get_credentials, session=sess, **kwargs) # type: ignore

0 comments on commit efc9382

Please sign in to comment.