Skip to main content
New Participant
Oct 3, 2023 9:13 AM UTC
Question

isusernametaken function returns true though the user doesn't exists

Hello All,

I have passed some invalid userid to the function isusernametaken and it returns true.

1 reply

stefanhelzle0001
Brainy
Oct 3, 2023 9:34 AM UTC

This is because you first try to cast that string into a variable of type UserOrGroup, and then feed that value into a function that expects a string.