pass locked before date to calendar av form
This commit is contained in:
@ -77,6 +77,10 @@ export const authOptions: NextAuthOptions = {
|
||||
{ id: "1", name: "admin", email: "admin@example.com", password: process.env.ADMIN_PASSWORD, role: "ADMIN", static: true }
|
||||
];
|
||||
|
||||
if (process.env.ADMIN_PASSWORD !== credentials.password) {
|
||||
throw new Error('невалидна парола');
|
||||
}
|
||||
|
||||
const user = users.find(user =>
|
||||
user.name === credentials.username && user.password === credentials.password
|
||||
);
|
||||
|
Reference in New Issue
Block a user