diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-06-24 18:50:01 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-07-03 16:04:41 +0200 |
commit | e653aa169e9c1fbb00e1920cd461a7be6c9e11af (patch) | |
tree | cbb86c4b32e25847b342bec82137b8719270fe96 /src/leap/bitmask/cli/bitmask_cli.py | |
parent | edaef12d080294a241fec895ae3255740433ecd8 (diff) |
[feat] use one single mail_auth token instead of imap/smtp tokens
The core was not addapted to the mail_auth token.
Diffstat (limited to 'src/leap/bitmask/cli/bitmask_cli.py')
-rwxr-xr-x | src/leap/bitmask/cli/bitmask_cli.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/leap/bitmask/cli/bitmask_cli.py b/src/leap/bitmask/cli/bitmask_cli.py index 5be6e9fc..49c5c3d3 100755 --- a/src/leap/bitmask/cli/bitmask_cli.py +++ b/src/leap/bitmask/cli/bitmask_cli.py @@ -107,10 +107,8 @@ GENERAL COMMANDS: help='displays status about the mail service') parser.add_argument('--enable', action='store_true') parser.add_argument('--disable', action='store_true') - parser.add_argument('--get-imap-token', action='store_true', - help='returns token for the IMAP service') - parser.add_argument('--get-smtp-token', action='store_true', - help='returns token for the SMTP service') + parser.add_argument('--get-token', action='store_true', + help='returns token for the mail service') parser.add_argument('--get-smtp-certificate', action='store_true', help='downloads a new smtp certificate') parser.add_argument('--check-smtp-certificate', action='store_true', @@ -276,11 +274,8 @@ def send_command(cli): elif subargs.disable: data += ['disable'] - elif subargs.get_imap_token: - data += ['get_imap_token'] - - elif subargs.get_smtp_token: - data += ['get_smtp_token'] + elif subargs.get_token: + data += ['get_token'] elif subargs.get_smtp_certificate: data += ['get_smtp_certificate'] |