Fix German signup mail, follow @mattwr18's review

https://github.com/Human-Connection/Human-Connection/pull/1512#pullrequestreview-285968139
This commit is contained in:
roschaefer 2019-09-10 16:16:15 +02:00
parent 2b1590aae1
commit 99fe0b001f
2 changed files with 8 additions and 8 deletions

View File

@ -15,25 +15,26 @@ export const signupTemplate = options => {
to: email,
subject,
text: `
Willkommen bei Human Connection! Benutzen Sie diesen Link, um den Registrierungsprozess abzuschließen.
und erstellen Sie ein Benutzerkonto
Willkommen bei Human Connection! Klick auf diesen Link, um den
Registrierungsprozess abzuschließen und um ein Benutzerkonto zu erstellen!
${actionUrl}
Sie können diese Verifizierung auch kopieren und in Ihr Browserfenster einfügen:
Alternativ kannst du diesen Code auch kopieren und im Browserfenster einfügen:
${nonce}
Wenn du dich nicht bei Human Connection angemeldet hast, ignoriere bitte diese E-Mail oder
Kontaktieren Sie den Support, wenn Sie Fragen haben:
Bitte ignoriere diese Mail, falls du dich nicht bei Human Connection angemeldet
hast. Bei Fragen kontaktiere gerne unseren Support:
${supportUrl}
Danke,
Das Human Connection Team
Übersetzt mit www.DeepL.com/Translator
English Version
===============
Welcome to Human Connection! Use this link to complete the registration process
and create a user account:

View File

@ -120,7 +120,6 @@ describe('resetPassword', () => {
resetPassword(nonce: $nonce, email: $email, newPassword: $newPassword)
}
`
const nonce = 'abcdef'
beforeEach(() => {
variables = { ...variables, newPassword: 'supersecret' }
})
@ -137,7 +136,7 @@ describe('resetPassword', () => {
describe('invalid email', () => {
it('resolves to false', async () => {
await setup()
variables = { ...variables, email: 'non-existent@example.org', nonce }
variables = { ...variables, email: 'non-existent@example.org', nonce: 'abcdef' }
await expect(mutate({ mutation, variables })).resolves.toMatchObject({
data: { resetPassword: false },
})