Patch security issue in admin login process

Credit: exmex
https://github.com/warhawk3407/bgpanel/issues/19