Possibilità di scrivere l'username anche con la chiocciola @

This commit is contained in:
Surya Paolo
2023-01-25 10:47:52 +01:00
parent 98c0218ef7
commit 567f7b4be7
24 changed files with 13 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.59" APP_VERSION="0.5.60"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.59" APP_VERSION="0.5.60"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.59" APP_VERSION="0.5.60"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.59" APP_VERSION="0.5.60"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="13" APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet DIRECTORY_LOCAL=newfreeplanet

View File

@@ -1,4 +1,4 @@
APP_VERSION="0.5.59" APP_VERSION="0.5.60"
SERVICE_WORKER_FILE="service-worker.js" SERVICE_WORKER_FILE="service-worker.js"
APP_ID="14" APP_ID="14"
DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_LOCAL="newfreeplanet"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -249,6 +249,9 @@ export default defineComponent({
signup.email = signup.email.toLowerCase() signup.email = signup.email.toLowerCase()
signup.username = tools.removespaces(signup.username) signup.username = tools.removespaces(signup.username)
// remove @
signup.username = tools.removeAt(signup.username)
duplicate_email.value = false duplicate_email.value = false
duplicate_username.value = false duplicate_username.value = false

View File

@@ -4446,6 +4446,10 @@ export const tools = {
return mystr.replace(/\s+/g, '') return mystr.replace(/\s+/g, '')
}, },
removeAt(mystr: string): string {
return mystr.replace(/@/g, '')
},
removespecial_chars(mystr: string) { removespecial_chars(mystr: string) {
mystr = mystr.replace(/\s+/g, '') mystr = mystr.replace(/\s+/g, '')
mystr = mystr.replace(/\//g, '') mystr = mystr.replace(/\//g, '')
@@ -7528,11 +7532,11 @@ export const tools = {
isEmailNoMicroZozz(myemail: string) { isEmailNoMicroZozz(myemail: string) {
return myemail.search(/hotmail/i) !== -1 return myemail.search(/hotmail/i) !== -1
|| myemail.search(/yahoo/i) !== -1
|| myemail.search(/outlook/i) !== -1 || myemail.search(/outlook/i) !== -1
|| myemail.search(/live.it/i) !== -1 || myemail.search(/live.it/i) !== -1
|| myemail.search(/microsoft/i) !== -1 || myemail.search(/microsoft/i) !== -1
}, },
// || myemail.search(/yahoo/i) !== -1
getoptionsMainCards(only: boolean) { getoptionsMainCards(only: boolean) {
let myarr = [] let myarr = []