/** * credentials.js * ============== * Authorised login accounts for Genesis AI dashboard. * * TO ADD A NEW USER — add an entry to the USERS array below. * TO CHANGE PASSWORD — update the password field for the relevant email. * TO REMOVE A USER — delete their entry from the array. * * Format: * { email: "user@dabur.com", password: "yourpassword", name: "Display Name" } */ export const USERS = [ { email: "sohini.bera@dabur.com", password: "Chocolate", name: "Sohini Bera", }, { email: "pricing.analyst@dabur.com", password: "1234", name: "Pricing Analyst", }, ] /** * Returns the user object if credentials match, otherwise null. */ export function authenticate(email, password) { const e = email.trim().toLowerCase() const p = password return USERS.find(u => u.email.toLowerCase() === e && u.password === p) || null }