Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Invitation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
mashplace
backend
Invitation
Commits
bcb48e89
Commit
bcb48e89
authored
2 years ago
by
gfalileev
Committed by
George Falileev
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MP-579: convert email to lower case when creates invitation
(cherry picked from commit
a5d5565f
)
parent
300118e3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
internal/service/service_invitation.go
+2
-1
2 additions, 1 deletion
internal/service/service_invitation.go
internal/service/service_landlord_reference.go
+2
-1
2 additions, 1 deletion
internal/service/service_landlord_reference.go
with
4 additions
and
2 deletions
internal/service/service_invitation.go
+
2
−
1
View file @
bcb48e89
...
...
@@ -3,6 +3,7 @@ package service
import
(
"context"
"errors"
"strings"
"time"
"gitlab.mashroom.com/mashroom/backend/common/api/grpcctx"
...
...
@@ -42,7 +43,7 @@ func (srv *serviceImpl) InvitationCreate(
HostID
:
req
.
GetHostId
(),
Invitee
:
model
.
User
{
UserID
:
req
.
GetInvitee
()
.
GetUserId
(),
Email
:
req
.
GetInvitee
()
.
GetEmail
(),
Email
:
strings
.
ToLower
(
req
.
GetInvitee
()
.
GetEmail
()
)
,
Name
:
req
.
GetInvitee
()
.
GetName
(),
Phone
:
req
.
GetInvitee
()
.
GetPhone
(),
},
...
...
This diff is collapsed.
Click to expand it.
internal/service/service_landlord_reference.go
+
2
−
1
View file @
bcb48e89
...
...
@@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"net/http"
"strings"
"gitlab.mashroom.com/mashroom/backend/common/api/grpcerr"
"gitlab.mashroom.com/mashroom/backend/common/generic/log"
...
...
@@ -67,7 +68,7 @@ func (srv *serviceImpl) LandlordReferenceSave(
{
Role
:
notification
.
Role_ROLE_LANDLORD
,
Contacts
:
&
notification
.
Contacts
{
Email
:
req
.
GetInvitee
()
.
GetEmail
(),
Email
:
strings
.
ToLower
(
req
.
GetInvitee
()
.
GetEmail
()
)
,
Phone
:
req
.
GetInvitee
()
.
GetPhone
(),
Fullname
:
req
.
GetInvitee
()
.
GetName
(),
},
...
...
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