mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 20:58:48 +01:00
changed method to create initials same as others
This commit is contained in:
parent
b365599bc8
commit
6289acd109
1 changed files with 4 additions and 2 deletions
|
|
@ -1009,8 +1009,10 @@ if (Meteor.isServer) {
|
|||
user.username = user.services.oidc.username;
|
||||
user.emails = [{ address: email, verified: true }];
|
||||
const initials = user.services.oidc.fullname
|
||||
.match(/\b[a-zA-Z]/g)
|
||||
.join('')
|
||||
.split(/\s+/)
|
||||
.reduce((memo, word) => {
|
||||
return memo + word[0];
|
||||
}, '')
|
||||
.toUpperCase();
|
||||
user.profile = {
|
||||
initials,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue