Avoid Special Character when creating an Employee

Dear All,

We want to avoid spacial chracter (like "!@#$%^&*()_+-=[]{}|\:;""<>,.?/~`" and minumum lengt 2 character) when people are creating internal and external user. Especially external user creation process from Web Shop.

I know that I can set min. lenght from Designer "last name" column but I need a script to avoid special characters. Also I hope  I don't need special customization for Web Desginer? Any idea?

One Identity Software 9.1.1

Thank you for support

Best regards

Samet

Parents Reply Children
  •  A sample would be as follows (Valid characters: letters, digits, hyphens and underscores)

    Dim str As String = Convert.ToString(Value)
    If str.Length > 0 Then
    	Dim muster As String = "^([-_A-Z0-9]*)$"
    	Dim regEx As New Regex(muster, RegexOptions.IgnoreCase Or RegexOptions.CultureInvariant)
    	If Not regEx.IsMatch(str)
    		Throw New ViException(#LD("'{0}' contains illegal characters. It must only contain alphabetic characters, decimal digits, hyphens and underscores.", str)#, ExceptionRelevance.EndUser)
    	End If
    End If