fix(auth): a proof the register couldn't answer counts; the sign-up mail says it gives a password
Two of the fourth reading's lows:
- A signed-in proof whose call to the register failed
(RegisterUnavailableException, a member's call timing out after the
register checked it) stays counted against the session, rather than
taken back: a guess never goes uncounted.
- A sign-up code also gives an existing account with that address its
first password, which its mail now says in the subject too ("create an
account or give it a password").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
d7855162c7
commit
f154b7ea7c
1 changed files with 50 additions and 10 deletions
|
|
@ -100,7 +100,8 @@ void main() {
|
|||
|
||||
expect(
|
||||
mail.subject,
|
||||
'K7QX-M2PD: your Halkyon Learn code to create an account',
|
||||
'K7QX-M2PD: your Halkyon Learn code to create an account or give it '
|
||||
'a password',
|
||||
);
|
||||
expect(mail.body, startsWith('K7QX-M2PD\n\n'));
|
||||
expect(mail.body, contains('create your account on learn.halkyon.eu'));
|
||||
|
|
@ -173,7 +174,8 @@ void main() {
|
|||
).subject;
|
||||
const english = {
|
||||
EmailCodePurpose.signUp:
|
||||
'K7QX-M2PD: your Halkyon Learn code to create an account',
|
||||
'K7QX-M2PD: your Halkyon Learn code to create an account or give '
|
||||
'it a password',
|
||||
EmailCodePurpose.finishSetup:
|
||||
'K7QX-M2PD: your Halkyon Learn code to finish setting up your '
|
||||
'account',
|
||||
|
|
@ -190,7 +192,8 @@ void main() {
|
|||
};
|
||||
const german = {
|
||||
EmailCodePurpose.signUp:
|
||||
'K7QX-M2PD: dein Halkyon-Learn-Code, um ein Konto anzulegen',
|
||||
'K7QX-M2PD: dein Halkyon-Learn-Code, um ein Konto anzulegen oder '
|
||||
'ihm ein Passwort zu geben',
|
||||
EmailCodePurpose.finishSetup:
|
||||
'K7QX-M2PD: dein Halkyon-Learn-Code, um dein Konto fertig '
|
||||
'einzurichten',
|
||||
|
|
@ -248,11 +251,13 @@ void main() {
|
|||
|
||||
expect(
|
||||
mailIn('de').subject,
|
||||
'K7QX-M2PD: dein Halkyon-Learn-Code, um ein Konto anzulegen',
|
||||
'K7QX-M2PD: dein Halkyon-Learn-Code, um ein Konto anzulegen oder ihm '
|
||||
'ein Passwort zu geben',
|
||||
);
|
||||
expect(
|
||||
mailIn('fr').subject,
|
||||
'K7QX-M2PD: your Halkyon Learn code to create an account',
|
||||
'K7QX-M2PD: your Halkyon Learn code to create an account or give '
|
||||
'it a password',
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -267,12 +272,14 @@ void main() {
|
|||
|
||||
expect(
|
||||
mailIn('en').subject,
|
||||
'K7QX-M2PD: your Halkyon Todo code to create an account',
|
||||
'K7QX-M2PD: your Halkyon Todo code to create an account or give it a '
|
||||
'password',
|
||||
);
|
||||
expect(mailIn('en').body, contains('Type this code in Halkyon Todo'));
|
||||
expect(
|
||||
mailIn('de').subject,
|
||||
'K7QX-M2PD: dein Halkyon-Todo-Code, um ein Konto anzulegen',
|
||||
'K7QX-M2PD: dein Halkyon-Todo-Code, um ein Konto anzulegen oder '
|
||||
'ihm ein Passwort zu geben',
|
||||
);
|
||||
expect(mailIn('de').body, contains('Gib diesen Code in Halkyon Todo'));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue