~nicohman/wyvern

290f329393476b74cd0fb0bca5899db52f837aa1 — nicohman 5 years ago 1382c1c
Actually store token with login subcommand
1 files changed, 2 insertions(+), 0 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +2 -0
@@ 109,6 109,8 @@ fn main() -> Result<(), ::std::io::Error> {
                    NotAvailable => error!("You've triggered the captcha. 5 tries every 24 hours is allowed before the captcha is triggered. You should probably use the alternate login method or wait 24 hours"),
                    _ => error!("Error: {:?}", err),
                };
                } else {
                    config.token = Some(token.unwrap());
                }
            } else {
                config.token = Some(login());