mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
20 lines
No EOL
481 B
JavaScript
20 lines
No EOL
481 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
|
|
*/
|
|
function hasCompletedProfile (user) {
|
|
return !!Users.getEmail(user) && !!Users.getUserName(user);
|
|
}
|
|
Telescope.registerCallback("profileCompletedChecks", hasCompletedProfile); |