user: fix local vs remote determination in remote_or_auth_active?/1
The original logic for remote_or_auth_active?/1 was fragile, I replaced it with cleaner and faster pattern matching.
Also adds regression test for remote_or_auth_active?/1.
The original logic for remote_or_auth_active?/1 was fragile, I replaced it with cleaner and faster pattern matching.
Also adds regression test for remote_or_auth_active?/1.