Possibilità di scrivere l'username anche con la chiocciola @
This commit is contained in:
@@ -249,6 +249,9 @@ export default defineComponent({
|
||||
signup.email = signup.email.toLowerCase()
|
||||
signup.username = tools.removespaces(signup.username)
|
||||
|
||||
// remove @
|
||||
signup.username = tools.removeAt(signup.username)
|
||||
|
||||
duplicate_email.value = false
|
||||
duplicate_username.value = false
|
||||
|
||||
|
||||
@@ -4446,6 +4446,10 @@ export const tools = {
|
||||
return mystr.replace(/\s+/g, '')
|
||||
},
|
||||
|
||||
removeAt(mystr: string): string {
|
||||
return mystr.replace(/@/g, '')
|
||||
},
|
||||
|
||||
removespecial_chars(mystr: string) {
|
||||
mystr = mystr.replace(/\s+/g, '')
|
||||
mystr = mystr.replace(/\//g, '')
|
||||
@@ -7528,11 +7532,11 @@ export const tools = {
|
||||
isEmailNoMicroZozz(myemail: string) {
|
||||
|
||||
return myemail.search(/hotmail/i) !== -1
|
||||
|| myemail.search(/yahoo/i) !== -1
|
||||
|| myemail.search(/outlook/i) !== -1
|
||||
|| myemail.search(/live.it/i) !== -1
|
||||
|| myemail.search(/microsoft/i) !== -1
|
||||
},
|
||||
// || myemail.search(/yahoo/i) !== -1
|
||||
|
||||
getoptionsMainCards(only: boolean) {
|
||||
let myarr = []
|
||||
|
||||
Reference in New Issue
Block a user