refactor(frontend): use central user creds (#11520)

This commit is contained in:
Matthias Mair authored and GitHub committed 2026-03-14 13:29:46 +11:00
1 parent fda3204e33
commit d7af345e20
22 files changed
+118 -105

No files matched your search

+28 -7
View File
@@ -7,13 +7,34 @@ export const homeUrl = `${webUrl}/home`;
export const loginUrl = `${webUrl}/login`;
export const logoutUrl = `${webUrl}/logout`;
export const user = {
name: 'Ally Access',
username: 'allaccess',
password: 'nolimits'
export type UserType = {
name?: string;
username: string;
testcred: string;
};
export const adminuser = {
username: 'admin',
password: 'inventree'
export const allaccessuser: UserType = {
name: 'Ally Access',
username: 'allaccess',
testcred: 'nolimits'
};
export const adminuser: UserType = {
username: 'admin',
testcred: 'inventree'
};
export const stevenuser: UserType = {
username: 'steven',
testcred: 'wizardstaff'
};
export const readeruser: UserType = {
username: 'reader',
testcred: 'readonly'
};
export const noaccessuser: UserType = {
username: 'noaccess',
testcred: 'youshallnotpass'
};