Restrict what can be in a userfield

On Replit Ask we have a user field for your replit username. I have realized that any string would work and you can even include HTML. Is there a way to limit what can be input into a template? For example, it already has an @ and disallows HTML.

Image of the current settings.

Some more detail and background on Ask.

I think you’ll need a plugin to handle that. You could even have it do an API call to validate it.

1 Like

Got it. And custom plugins are available on all hosting plans correct?
Also, Replit staff has said replit auth is being worked so its not worth the effort to make a plugin to validate its a real username.

No. At discourse.org custom plugins are available only on enterprise plans.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.