Pzhang/texteditor password

This function shouldn't return