Skip to content

Commit 29844ac

Browse files
authored
Merge pull request #798 from appwrite/fix-116-cli-login
Update login to use new auth method
2 parents 51912b3 + 29bf7fe commit 29844ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/cli/lib/commands/generic.js.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { globalConfig, localConfig } = require("../config");
66
const { actionRunner, success, parseBool, commandDescriptions, log, parse } = require("../parser");
77
{% if sdk.test != "true" %}
88
const { questionsLogin } = require("../questions");
9-
const { accountCreateEmailSession, accountDeleteSession } = require("./account");
9+
const { accountCreateEmailPasswordSession, accountDeleteSession } = require("./account");
1010

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

1919
let client = await sdkForConsole(false);
2020

21-
await accountCreateEmailSession({
21+
await accountCreateEmailPasswordSession({
2222
email: answers.email,
2323
password: answers.password,
2424
parseOutput: false,

0 commit comments

Comments
 (0)