mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 08:16:14 +00:00
refactor(frontend): use central user creds (#11520)
This commit is contained in:
1 parent
fda3204e33
commit
d7af345e20
22 files changed
+118
-105
No files matched your search
@@ -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'
|
||||
};
|
||||
Reference in new issue
Block a user