Fix #1660

Dont re-register perms if a login event is cancelled.