mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Include to Wekan packages directory contents, so that meteor command would build all directly.
This also simplifies build scripts. Thanks to xet7 !
This commit is contained in:
parent
6117097a93
commit
73e265d8fd
354 changed files with 36977 additions and 106 deletions
19
packages/meteor-useraccounts-core/lib/utils.js
Normal file
19
packages/meteor-useraccounts-core/lib/utils.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
capitalize = function(str) {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
};
|
||||
|
||||
signedInAs = function() {
|
||||
var user = Meteor.user();
|
||||
|
||||
if (user) {
|
||||
if (user.username) {
|
||||
return user.username;
|
||||
} else if (user.profile && user.profile.name) {
|
||||
return user.profile.name;
|
||||
} else if (user.emails && user.emails[0]) {
|
||||
return user.emails[0].address;
|
||||
} else {
|
||||
return "Signed In";
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue