Skip to content

Commit

Permalink
Merge pull request #798 from appwrite/fix-116-cli-login
Browse files Browse the repository at this point in the history
Update login to use new auth method
  • Loading branch information
abnegate authored Mar 12, 2024
2 parents 51912b3 + 29bf7fe commit 29844ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/cli/lib/commands/generic.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { globalConfig, localConfig } = require("../config");
const { actionRunner, success, parseBool, commandDescriptions, log, parse } = require("../parser");
{% if sdk.test != "true" %}
const { questionsLogin } = require("../questions");
const { accountCreateEmailSession, accountDeleteSession } = require("./account");
const { accountCreateEmailPasswordSession, accountDeleteSession } = require("./account");

const login = new Command("login")
.description(commandDescriptions['login'])
Expand All @@ -18,7 +18,7 @@ const login = new Command("login")

let client = await sdkForConsole(false);

await accountCreateEmailSession({
await accountCreateEmailPasswordSession({
email: answers.email,
password: answers.password,
parseOutput: false,
Expand Down

0 comments on commit 29844ac

Please sign in to comment.