简体   繁体   English

在角度创建新用户时如何验证用户名?

[英]how to validate username when creating new user in angular?

We need to follow standard email practice while creating new user.在创建新用户时,我们需要遵循标准的电子邮件实践。 User name Uppercase and lowercase letters in English (AZ, az) Digits from 0 to 9 Special characters such as !用户名 英文大写和小写字母(AZ、az) 数字 0 到 9 特殊字符,如! # $ % & ' * + - / = ? # $ % & ' * + - / = ? ^ _ ` { | ^ _ ` { | ( ) , : ; ( ) , : ; < > @ [ \ ] @ symbol must be there after @ symbol allow only Uppercase and lowercase letters in English (AZ, az) Digits from 0 to 9 A hyphen (-) A period (.) < > @ [ \ ] @ 符号必须在 @ 符号之后 只允许英文中的大写和小写字母 (AZ, az) 0 到 9 之间的数字 连字符 (-) 句点 (.)

您可以使用内置电子邮件验证器https://angular.io/api/forms/EmailValidator

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何保存用户信息(userName)firebase new angular 2 - How to save user information (userName) firebase new angular 2 使用带 Angular 和 Django 的 Stripe 创建新用户时,如何添加其他公司字段? - How can I add additional company fields when creating a new user using Stripe with Angular and Django? 使用Angular Material 2创建新的MatTable时发生TypeError - TypeError when creating a new MatTable with Angular Material 2 创建新的Angle 7项目时出现的问题 - Issues when creating new angular 7 project 如何分别验证用户名和密码? - how to validate separate for username and password? 使用angular / cli创建新项目时出现错误@ angular-devkit - Error @angular-devkit when creating new project with angular/cli 在Visual Studio 2019中创建新的Asp.Net Core 2.1 Angular项目时,无法选择单个用户帐户 - Can't select individual user accounts when creating a new Asp.Net Core 2.1 Angular project in Visual Studio 2019 如何验证新密码并确认angular2中的密码 - How to validate passwords for new and confirm password in angular2 在 Angular 中创建新的 Firestore 文档时,如何访问自动创建的文档 ID? - How can I access the auto-created document ID when creating a new Firestore document in Angular? 使用 Angular 9 CLI 创建新项目时如何解决纱线问题? - How can I resolve the yarn issue when creating a new project with Angular 9 CLI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM