mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Account editing and change password.
This commit is contained in:
parent
b5cf9f8719
commit
b392a51676
23 changed files with 230 additions and 102 deletions
|
|
@ -7,7 +7,7 @@ import { ok, unauthorized } from 'lib/response';
|
|||
export default async (req, res) => {
|
||||
const { username, password } = req.body;
|
||||
|
||||
const account = await getAccount(username);
|
||||
const account = await getAccount({ username });
|
||||
|
||||
if (account && (await checkPassword(password, account.password))) {
|
||||
const { user_id, username, is_admin } = account;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue