Skip to main content
October 3, 2023
Question

isusernametaken function returns true though the user doesn't exists

  • October 3, 2023
  • 1 reply
  • 0 views

Hello All,

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

1 reply

stefanhelzle0001
Brainy
October 3, 2023

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.