fix(auth): SMTP-Fehler wie Erfolg behandeln (Konten-Seitenkanal, F13) #47
3 changed files with 28 additions and 16 deletions
|
|
@ -15,8 +15,8 @@ T _$identity<T>(T value) => value;
|
|||
/// @nodoc
|
||||
mixin _$ResendState {
|
||||
|
||||
bool get isSending;/// The last request counts as sent (also for `emailSendLimited` from the
|
||||
/// check-email screen, F12).
|
||||
bool get isSending;/// The last request counts as sent (also for `emailSendLimited` and server
|
||||
/// failures from the check-email screen, F12/F13).
|
||||
bool get sent; AuthFailure? get failure;/// Only for an address typed in by the user.
|
||||
EmailError? get emailError;
|
||||
/// Create a copy of ResendState
|
||||
|
|
@ -234,8 +234,8 @@ class _ResendState implements ResendState {
|
|||
|
||||
|
||||
@override@JsonKey() final bool isSending;
|
||||
/// The last request counts as sent (also for `emailSendLimited` from the
|
||||
/// check-email screen, F12).
|
||||
/// The last request counts as sent (also for `emailSendLimited` and server
|
||||
/// failures from the check-email screen, F12/F13).
|
||||
@override@JsonKey() final bool sent;
|
||||
@override final AuthFailure? failure;
|
||||
/// Only for an address typed in by the user.
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@ part of 'resend_controller.dart';
|
|||
/// "Resend email" for the confirmation (KTO-01 Kriterium 6, F12).
|
||||
///
|
||||
/// The caller states where the request comes from: only there the controller
|
||||
/// decides whether `emailSendLimited` is shown (login) or treated as success
|
||||
/// (check-email screen).
|
||||
/// decides (`resendFailureFor`): `emailSendLimited` is shown at login and
|
||||
/// treated as success on the check-email screen; `unexpected` (e.g. SMTP
|
||||
/// outage) is shown at login (account proven) and neutral on check-email.
|
||||
|
||||
@ProviderFor(ResendController)
|
||||
final resendControllerProvider = ResendControllerProvider._();
|
||||
|
|
@ -20,15 +21,17 @@ final resendControllerProvider = ResendControllerProvider._();
|
|||
/// "Resend email" for the confirmation (KTO-01 Kriterium 6, F12).
|
||||
///
|
||||
/// The caller states where the request comes from: only there the controller
|
||||
/// decides whether `emailSendLimited` is shown (login) or treated as success
|
||||
/// (check-email screen).
|
||||
/// decides (`resendFailureFor`): `emailSendLimited` is shown at login and
|
||||
/// treated as success on the check-email screen; `unexpected` (e.g. SMTP
|
||||
/// outage) is shown at login (account proven) and neutral on check-email.
|
||||
final class ResendControllerProvider
|
||||
extends $NotifierProvider<ResendController, ResendState> {
|
||||
/// "Resend email" for the confirmation (KTO-01 Kriterium 6, F12).
|
||||
///
|
||||
/// The caller states where the request comes from: only there the controller
|
||||
/// decides whether `emailSendLimited` is shown (login) or treated as success
|
||||
/// (check-email screen).
|
||||
/// decides (`resendFailureFor`): `emailSendLimited` is shown at login and
|
||||
/// treated as success on the check-email screen; `unexpected` (e.g. SMTP
|
||||
/// outage) is shown at login (account proven) and neutral on check-email.
|
||||
ResendControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
|
|
@ -61,8 +64,9 @@ String _$resendControllerHash() => r'cab54661555bb641d3dc0fb1b06486b10f2e59e8';
|
|||
/// "Resend email" for the confirmation (KTO-01 Kriterium 6, F12).
|
||||
///
|
||||
/// The caller states where the request comes from: only there the controller
|
||||
/// decides whether `emailSendLimited` is shown (login) or treated as success
|
||||
/// (check-email screen).
|
||||
/// decides (`resendFailureFor`): `emailSendLimited` is shown at login and
|
||||
/// treated as success on the check-email screen; `unexpected` (e.g. SMTP
|
||||
/// outage) is shown at login (account proven) and neutral on check-email.
|
||||
|
||||
abstract class _$ResendController extends $Notifier<ResendState> {
|
||||
ResendState build();
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@ part of 'forgot_password_controller.dart';
|
|||
/// Logic of the "forgot password" form (KTO-01 Kriterium 8, 4, F12).
|
||||
///
|
||||
/// The reaction is the same for known and unknown addresses: every 200
|
||||
/// response, and `emailSendLimited`, count as success.
|
||||
/// response, `emailSendLimited` and server failures (`unexpected`, e.g. SMTP
|
||||
/// outage, F13) count as success. Only input, transport and IP-throttling
|
||||
/// failures are shown (`openEmailInputFailureFor`).
|
||||
|
||||
@ProviderFor(ForgotPasswordController)
|
||||
final forgotPasswordControllerProvider = ForgotPasswordControllerProvider._();
|
||||
|
|
@ -19,13 +21,17 @@ final forgotPasswordControllerProvider = ForgotPasswordControllerProvider._();
|
|||
/// Logic of the "forgot password" form (KTO-01 Kriterium 8, 4, F12).
|
||||
///
|
||||
/// The reaction is the same for known and unknown addresses: every 200
|
||||
/// response, and `emailSendLimited`, count as success.
|
||||
/// response, `emailSendLimited` and server failures (`unexpected`, e.g. SMTP
|
||||
/// outage, F13) count as success. Only input, transport and IP-throttling
|
||||
/// failures are shown (`openEmailInputFailureFor`).
|
||||
final class ForgotPasswordControllerProvider
|
||||
extends $NotifierProvider<ForgotPasswordController, ForgotPasswordState> {
|
||||
/// Logic of the "forgot password" form (KTO-01 Kriterium 8, 4, F12).
|
||||
///
|
||||
/// The reaction is the same for known and unknown addresses: every 200
|
||||
/// response, and `emailSendLimited`, count as success.
|
||||
/// response, `emailSendLimited` and server failures (`unexpected`, e.g. SMTP
|
||||
/// outage, F13) count as success. Only input, transport and IP-throttling
|
||||
/// failures are shown (`openEmailInputFailureFor`).
|
||||
ForgotPasswordControllerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
|
|
@ -59,7 +65,9 @@ String _$forgotPasswordControllerHash() =>
|
|||
/// Logic of the "forgot password" form (KTO-01 Kriterium 8, 4, F12).
|
||||
///
|
||||
/// The reaction is the same for known and unknown addresses: every 200
|
||||
/// response, and `emailSendLimited`, count as success.
|
||||
/// response, `emailSendLimited` and server failures (`unexpected`, e.g. SMTP
|
||||
/// outage, F13) count as success. Only input, transport and IP-throttling
|
||||
/// failures are shown (`openEmailInputFailureFor`).
|
||||
|
||||
abstract class _$ForgotPasswordController
|
||||
extends $Notifier<ForgotPasswordState> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue