Extracting email functions into a service (#14802)
* Extracting email functions into a service * Fixing two shadowing errors * Address PR review comments Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
10f5a8890c
Коммит
b977017ca7
@@ -3068,7 +3068,7 @@ func TestVerifyUserEmail(t *testing.T) {
|
||||
|
||||
ruser, _ := th.Client.CreateUser(&user)
|
||||
|
||||
token, err := th.App.CreateVerifyEmailToken(ruser.Id, email)
|
||||
token, err := th.App.Srv().EmailService.CreateVerifyEmailToken(ruser.Id, email)
|
||||
require.Nil(t, err, "Unable to create email verify token")
|
||||
|
||||
_, resp := th.Client.VerifyUserEmail(token.Token)
|
||||
|
||||
Ссылка в новой задаче
Block a user