LoginServiceTranslations.empty constructor

const LoginServiceTranslations.empty()

empty is used to create an empty LoginServiceTranslations object, to use the default error messages.

Implementation

const LoginServiceTranslations.empty()
    : errorTitle = 'Error',
      errorMessage = 'An unknown error occured',
      userDisabledTitle = 'User disabled',
      userDisabledMessage =
          'If you have any questions as to how this happened, please contact'
              ' us at [email].',
      wrongPasswordTitle = 'Wrong password',
      wrongPasswordMessage =
          'The password you entered is incorrect. Please try again.',
      tooManyRequestsTitle = 'To many requests',
      tooManyRequestsMessage = 'You’ve tried to log in too many times.',
      invalidCredentialsTitle = 'Incorrect',
      invalidCredentialsMessage =
          'Your login credentials are incorrect, please try again.',
      changePasswordInvalidEmailTitle = 'Invalid email',
      changePasswordInvalidEmailMessage =
          'The email you entered is invalid. Please try again.',
      changePasswordUserNotFoundTitle = 'Unknown email',
      changePasswordUserNotFoundMessage =
          'The email you entered is unknown. Please try again.',
      changePasswordErrorTitle = 'Error',
      changePasswordErrorMessage = 'An unknown error occured';