mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
module.add(user,problem,record)
This commit is contained in:
commit
d5b1f623f8
43 files changed
+5965
No files matched your search
@@ -0,0 +1,52 @@
|
||||
const
|
||||
perm = require('../permission'),
|
||||
priv = require('../privilege');
|
||||
const BUILTIN_USERS = [
|
||||
{
|
||||
_id: 0,
|
||||
uname: 'Hydro',
|
||||
unameLower: 'hydro',
|
||||
email: '',
|
||||
emailLower: '',
|
||||
salt: '',
|
||||
hash: '',
|
||||
gender: 'other',
|
||||
regat: new Date(0),
|
||||
regip: '127.0.0.1',
|
||||
priv: priv.PRIV_NONE,
|
||||
gravatar: '',
|
||||
loginat: new Date(),
|
||||
loginip: '127.0.0.1'
|
||||
},
|
||||
{
|
||||
_id: 1,
|
||||
email: 'guest@hydro',
|
||||
emailLower: 'guest@hydro',
|
||||
uname: 'Guest',
|
||||
unameLower: 'guest',
|
||||
hash: '',
|
||||
salt: '',
|
||||
regat: new Date(),
|
||||
regip: '127.0.0.1',
|
||||
loginat: new Date(),
|
||||
loginip: '127.0.0.1',
|
||||
priv: priv.PRIV_DEFAULT,
|
||||
gravatar: 'guest@hydro'
|
||||
}
|
||||
];
|
||||
const BUILTIN_DOMAINS = [{
|
||||
_id: 'system',
|
||||
owner: 0,
|
||||
roles: {
|
||||
guest: perm.PERM_BASIC,
|
||||
default: perm.PERM_DEFAULT,
|
||||
member: perm.PERM_DEFAULT,
|
||||
admin: perm.PERM_ADMIN
|
||||
},
|
||||
gravatar: '',
|
||||
name: 'System',
|
||||
bulletin: ''
|
||||
}];
|
||||
module.exports = {
|
||||
BUILTIN_USERS, BUILTIN_DOMAINS
|
||||
};
|
||||
Reference in new issue
Block a user