Skip to content

Commit

Permalink
refactor : disable demo-user logging activity
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Aug 9, 2024
1 parent ba2bf84 commit 59f1fb3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/lib/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ export async function demoLoginAction(role: string) {
// Set the session
await setSession(demoUser.email, role);

const userLog = {
username: demoUser.username,
name: `${demoUser.firstname} ${demoUser.lastname}`,
email: demoUser.email,
role: demoUser.role,
action: "demouser-login",
};

// log activity
await logDemoUser(userLog);
// const userLog = {
// username: demoUser.username,
// name: `${demoUser.firstname} ${demoUser.lastname}`,
// email: demoUser.email,
// role: demoUser.role,
// action: "demouser-login",
// };

// // log activity
// await logDemoUser(userLog);

return { success: true, redirectUrl: `/${role}` };
} catch (error) {
Expand Down

0 comments on commit 59f1fb3

Please sign in to comment.