Skip to content

Commit

Permalink
fixing create user from email where email template would not contain …
Browse files Browse the repository at this point in the history
…fullname and username
  • Loading branch information
mrt-prodz authored and polonel committed Aug 20, 2022
1 parent 38e3fae commit 199a577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mailer/templates/public-account-created/index.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
</head>
<body>
<div>
<p>Dear {{user.fullname}},</p>
<p>Dear {{fullname}},</p>
<p>Welcome to Trudesk. Please click the link below to login with the following details:</p>
<p>
<a href="{{baseUrl}}">{{baseUrl}}</a> <br /><br />
<strong>Username: {{user.username}}</strong> <br />
<strong>Username: {{username}}</strong> <br />
<strong>Password: {{plainTextPassword}}</strong>
</p>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ userSchema.statics.createUserFromEmail = function (email, callback) {

var dataObject = {
user: savedUser,
username: savedUser.username,
fullname: savedUser.fullname,
plainTextPassword: plainTextPass,
baseUrl: setting.value
}
Expand Down

0 comments on commit 199a577

Please sign in to comment.