Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
8cadb763
"apps/meteor/client/views/marketplace/helpers.ts" did not exist on "7632f12cfcc7ed8ee8f843587fdff63b101cc765"
Commit
8cadb763
authored
9 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Patches
Plain Diff
Improve welcome message
parent
79fbca99
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/lib/accounts.coffee
+23
-21
23 additions, 21 deletions
server/lib/accounts.coffee
server/methods/registerUser.coffee
+0
-6
0 additions, 6 deletions
server/methods/registerUser.coffee
with
23 additions
and
27 deletions
server/lib/accounts.coffee
+
23
−
21
View file @
8cadb763
...
...
@@ -32,36 +32,38 @@ Accounts.onCreateUser (options, user) ->
verified
:
true
]
# put user in #general channel
ChatRoom
.
update
(
'57om6EQCcFami9wuT'
,
{
$addToSet
:
{
uids
:
user
.
_id
}})
ChatSubscription
.
insert
rid
:
'57om6EQCcFami9wuT'
uid
:
user
.
_id
ls
:
(
new
Date
())
rn
:
'#general'
t
:
'g'
f
:
true
ts
:
new
Date
()
unread
:
0
if
user
.
name
?
ChatMessage
.
insert
rid
:
'57om6EQCcFami9wuT'
ts
:
new
Date
()
t
:
'wm'
msg
:
user
.
name
return
user
Accounts
.
validateLoginAttempt
(
login
)
->
console
.
log
'validateLoginAttempt ->'
,
JSON
.
stringify
login
,
null
,
' '
if
login
.
allowed
is
true
and
login
.
type
is
'password'
validEmail
=
login
.
user
.
emails
.
filter
(
email
)
->
return
email
.
verified
is
true
console
.
log
'validEmail'
,
validEmail
if
validEmail
.
length
is
0
throw
new
Meteor
.
Error
'no-valid-email'
return
false
if
not
login
.
user
.
lastLogin
?
# put user in #general channel
ChatRoom
.
update
(
'57om6EQCcFami9wuT'
,
{
$addToSet
:
{
uids
:
login
.
user
.
_id
}})
ChatSubscription
.
insert
rid
:
'57om6EQCcFami9wuT'
uid
:
login
.
user
.
_id
ls
:
(
new
Date
())
rn
:
'#general'
t
:
'g'
f
:
true
ts
:
new
Date
()
unread
:
0
if
login
.
user
.
name
?
ChatMessage
.
insert
rid
:
'57om6EQCcFami9wuT'
ts
:
new
Date
()
t
:
'wm'
msg
:
login
.
user
.
name
Meteor
.
users
.
update
{
_id
:
login
.
user
.
_id
},
{
$set
:
{
lastLogin
:
new
Date
}}
return
true
This diff is collapsed.
Click to expand it.
server/methods/registerUser.coffee
+
0
−
6
View file @
8cadb763
...
...
@@ -10,10 +10,4 @@ Meteor.methods
$set
:
name
:
formData
.
name
ChatMessage
.
insert
rid
:
'57om6EQCcFami9wuT'
ts
:
new
Date
()
t
:
'wm'
msg
:
formData
.
name
Accounts
.
sendVerificationEmail
(
userId
,
userData
.
email
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment