▄▄             ▄▄▄  ▄▄▄ Power
█  █ ▄▄▄▄ ▄▄▄▄▄ █  █ █  █
█▄▄█ █▄▄▄ █ █ █ █▀▀▄ █▀▀▄
█  █ ▄▄▄█ █ █ █ █▄▄▀ █▄▄▀

Login
Register
/ ad amd64 api asm asmbb best bugs chat common debian deck design dll docker email embed fast feature files fossil fresh.ide friendly gamedev heap help hiawatha incredible interop learning libfresh limit links linux meme meta.http-equiv money mysql neo nginx numbers orly os outage pass password programmers programming proile resources safety script.alert.xss secret seo skins sodom source sourcecode subforum support tags test type work xss игнат котики парола русский тест уеб.програмиране хабр.наполеон
Categories Thread list

Using nonenglish letters and spaces in user name and error

Hi,

Some users registered with nicknames these contain nonenglish letters and spaces. Now these user pages are not available. How can we block to use of nonenglish letters and spaces in usernames while showing a warning message ?

Please see;

https://fstdesk.com/!users/1

https://fstdesk.com/!userinfo/G%C4%B1dac%C4%B1lar

Thank you.

ufuk

Hi,

Some users registered with nicknames these contain nonenglish letters and spaces. Now these user pages are not available. How can we block to use of nonenglish letters and spaces in usernames while showing a warning message ?

Please see;

https://fstdesk.com/!users/1

https://fstdesk.com/!userinfo/G%C4%B1dac%C4%B1lar

Thank you.

Hm. There is no need to block the users. AsmBB should be Unicode compatible. So, the users should be able to register in any language.

But all this is well tested only with Cyrillic and Latin languages. I mean, wrong behavior in this should be considered a bug and should be fixed. I will investigate this and fix it as soon as possible.

Well, I see now. The problem is not in the non english letters. This very username has a space at the end. The profile and login are available, if the user enters a space at the end of the username.

This is the correct link to the profile: https://fstdesk.com/!userinfo/G%C4%B1dac%C4%B1lar%20

Actually there was a bug related to the spaces at the end of the user names. It was reported here and fixed in this check-in. Updating to the latest version of the engine should fix all similar issues.

Unfortunately, this update requires mandatory updating of the skin templates as well, so you may have some work to be done with merging the changes of the templates with your custom skin. ?:-(

johnfound

Well, I see now. The problem is not in the non english letters. This very username has a space at the end. The profile and login are available, if the user enters a space at the end of the username.

This is the correct link to the profile: https://fstdesk.com/!userinfo/G%C4%B1dac%C4%B1lar%20

Actually there was a bug related to the spaces at the end of the user names. It was reported here and fixed in this check-in. Updating to the latest version of the engine should fix all similar issues.

Unfortunately, this update requires mandatory updating of the skin templates as well, so you may have some work to be done with merging the changes of the templates with your custom skin. ?:-(

hi john,

i dont want users add space between two words and use it as nickname. And also they use eamils as nicknames. How can i fix this. thank you.

ufuk

hi john,

i dont want users add space between two words and use it as nickname. And also they use eamils as nicknames. How can i fix this. thank you.

Well, the spaces inside the user name are allowed (but not at the start and at the end). Fixing it will need changes to the engine code. But I don't want to make this restriction, simply because can't see what is the problem with such names??? Let your users use whatever they want. It is harmless or even good for the forum community.

The login with the email also needs changes, but is actually reasonable feature. I will include it in the to-do list and will implement it at the first chance.

But notice (if you have such expectations) that this feature, does not actually increase the accounts security level.

johnfound
ufuk

hi john,

i dont want users add space between two words and use it as nickname. And also they use eamils as nicknames. How can i fix this. thank you.

Well, the spaces inside the user name are allowed (but not at the start and at the end). Fixing it will need changes to the engine code. But I don't want to make this restriction, simply because can't see what is the problem with such names??? Let your users use whatever they want. It is harmless or even good for the forum community.

The login with the email also needs changes, but is actually reasonable feature. I will include it in the to-do list and will implement it at the first chance.

But notice (if you have such expectations) that this feature, does not actually increase the accounts security level.

thanks. i am sorry , i am new. which program should i use to edit engine ?

ufuk

thanks. i am sorry , i am new. which program should i use to edit engine ?

You will need Fresh IDE or FASM and some assembly language skills.

Read more in these threads:

https://board.asm32.info/asm/asmbb-how-to-download-compile-and-install_49/#H6 - main download and compile guide.

https://board.asm32.info/can-t-compile.253/ - possible problems.

https://board.asm32.info/source/instructions-for-assembling-asmbb-without-using-freshide.231/ - use FASM instead of Fresh IDE.

The register/login/logout code is located in the file source/accounts.asm

Categories Thread list

Using nonenglish letters and spaces in user name and error

AsmBB v2.4 (check-in: 7bb3292ed42db7ca); SQLite v3.25.3 (check-in: 89e099fbe5e13c33);

©2016..2018 John Found; Licensed under EUPL.
Powered by Assembly language
Created with Fresh IDE

Icons are made by Egor Rumyantsev, vaadin and icomoon from www.flaticon.com