mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
21 lines
No EOL
420 B
JavaScript
21 lines
No EOL
420 B
JavaScript
/**
|
|
* Users hooks namespace
|
|
*/
|
|
|
|
Users.hooks = {
|
|
userEditRenderedCallbacks: [],
|
|
userEditClientCallbacks: [],
|
|
userCreatedCallbacks: [],
|
|
userProfileCompleteChecks: []
|
|
}
|
|
|
|
|
|
/**
|
|
* Check if the user has completed their profile with an email and username.
|
|
* @param {Object} user
|
|
*/
|
|
Users.hooks.userProfileCompleteChecks.push(
|
|
function(user) {
|
|
return !!Users.getEmail(user) && !!Users.getUserName(user);
|
|
}
|
|
); |