41 lines
735 B
JavaScript
41 lines
735 B
JavaScript
|
|
import username from './user.username.js';
|
|
|
|
import salt from './user.salt.js';
|
|
|
|
import hash from './user.hash.js';
|
|
|
|
import sessionKey from './user.sessionKey.js';
|
|
|
|
import groups from './group/user.group.js';
|
|
|
|
import table from '/unify/table.js';
|
|
|
|
|
|
import email from './user.email.js';
|
|
|
|
|
|
import collection from "/unify/collection.js";
|
|
|
|
|
|
export default class user extends table {
|
|
|
|
username = new username();
|
|
|
|
salt = new salt();
|
|
|
|
hash = new hash();
|
|
|
|
sessionKey = new sessionKey();
|
|
|
|
// Every user needs to have an groups field, This is for the permissions.
|
|
groups = new groups();
|
|
|
|
email = new email();
|
|
|
|
selectedUsers = new collection( user );
|
|
|
|
}
|
|
|
|
|