added setPasswordMode()

added password mode
fixed crash bug on iosx+glfw