https://www.opensource-socialnetwork.org/discussion/view/5890/admin-name-register-the-ossn
Restrict certain usernames like admin, administrator and so on. This component is example of how callback for action is done via component. This way you can intercept certain actions before execution.
Thank you for this great component Arsalan. Because last week I found someone who signed up with this username and email address... subarumackenzie [email protected]
I blocked and banned them from my platform
thank for reply, but im still learning and not clear ,can you clarify for me on how do i edit the line, for example what do i put to restrict user names to 20 characters ,while i get strtolower makes the name lower case , what sets it length
Yes you can https://github.com/opensource-socialnetwork/RestrictUsernames/blob/main/ossn_com.php#L23
Set the minimum 6 and maximum you wish.
Nice component, btw is there anything to restrict the user name length. or would that be a mysql data base setting i can do?
Thank you : )