NickAuth & User: Fix nick auth + gpg auth when secure flag is on. Closes GH-825.