Page MenuHomePhabricator

Restore the "Log In" menubar action
ClosedPublic

Authored by epriestley on Dec 5 2017, 1:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:53 AM
Unknown Object (File)
Tue, Apr 16, 7:47 PM
Unknown Object (File)
Tue, Apr 16, 5:28 PM
Unknown Object (File)
Sun, Apr 14, 6:54 AM
Unknown Object (File)
Thu, Apr 11, 8:38 AM
Unknown Object (File)
Wed, Apr 10, 2:03 AM
Unknown Object (File)
Wed, Apr 10, 1:11 AM
Unknown Object (File)
Mar 5 2024, 4:16 AM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/activation-link-in-welcome-mail-only-works-if-new-user-isnt-semi-logged-in/740/7.

In T13024, I rewrote the main menu bar to hide potentially sensitive items (like notification and message counts and saved search filters) until users fully log in.

However, the "Log In" item got caught in this too. For clarity, rename shouldAllowPartialSessions() to shouldRequireFullSession() (since logged-out users don't have any session at all, so it would be a bit misleading to say that "Log In" "allows" a partial session). Then let "Log In" work again for logged-out users.

(In most cases, users are prompted to log in when they take an action which requires them to be logged in -- like creating or editing an object, or adding comments -- so this item doesn't really need to exist. However, it aligns better with user expectations in many cases to have it present, and some reasonable operations like "Check if I have notifications/messages" don't have an obvious thing to click otherwise.)

Test Plan

Viewed site in an incognito window, saw "Log In" button again. Browsed normally, saw normal menu.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 5 2017, 5:02 PM
This revision was automatically updated to reflect the committed changes.