mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Replace all login username references with email
This commit is contained in:
parent
b4057599a1
commit
77609be598
3 changed files with 8 additions and 8 deletions
|
|
@ -342,10 +342,10 @@ async fn crunchyroll_session(cli: &mut Cli) -> Result<Crunchyroll> {
|
|||
};
|
||||
|
||||
let crunchy = if let Some(credentials) = &login_method.credentials {
|
||||
if let Some((user, password)) = credentials.split_once(':') {
|
||||
builder.login_with_credentials(user, password).await?
|
||||
if let Some((email, password)) = credentials.split_once(':') {
|
||||
builder.login_with_credentials(email, password).await?
|
||||
} else {
|
||||
bail!("Invalid credentials format. Please provide your credentials as user:password")
|
||||
bail!("Invalid credentials format. Please provide your credentials as email:password")
|
||||
}
|
||||
} else if let Some(etp_rt) = &login_method.etp_rt {
|
||||
builder.login_with_etp_rt(etp_rt).await?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue