Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Input Validation for Registration | Validating Input and Safe Parsing
C# Exceptions and Error Handling Practice

bookChallenge: Input Validation for Registration

Tâche

Swipe to start coding

Implement a method that validates user registration information by checking both email and password requirements.

  • The method must return true if the email is in a valid format and the password meets length requirements. Otherwise, it must return false.
  • The email is valid if it contains exactly one "@" symbol and at least one "." after the "@".
  • The password is valid if it is at least 8 characters long.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Input Validation for Registration

Glissez pour afficher le menu

Tâche

Swipe to start coding

Implement a method that validates user registration information by checking both email and password requirements.

  • The method must return true if the email is in a valid format and the password meets length requirements. Otherwise, it must return false.
  • The email is valid if it contains exactly one "@" symbol and at least one "." after the "@".
  • The password is valid if it is at least 8 characters long.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 2
single

single

some-alt