File tree Expand file tree Collapse file tree
openlibrary/plugins/upstream Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -644,19 +644,19 @@ def login(
644644 )
645645 email = email or audit .get ("ia_email" ) or audit .get ("ol_email" )
646646
647- if ol_account : = OpenLibraryAccount .get_by_email (email ):
648- _set_login_cookies (audit , ol_account , remember = remember )
649-
650- if web .cookies ().get ("pda" ):
651- add_flash_message (
652- "info" ,
653- _ (
654- "Thank you for registering an Open Library account and "
655- "requesting special print disability access. You should receive "
656- "an email detailing next steps in the process."
657- ),
658- )
659- web .setcookie ("pda" , "" , expires = 1 )
647+ ol_account = OpenLibraryAccount .get_by_email (email )
648+ _set_login_cookies (audit , ol_account , remember = remember )
649+
650+ if ol_account and web .cookies ().get ("pda" ):
651+ add_flash_message (
652+ "info" ,
653+ _ (
654+ "Thank you for registering an Open Library account and "
655+ "requesting special print disability access. You should receive "
656+ "an email detailing next steps in the process."
657+ ),
658+ )
659+ web .setcookie ("pda" , "" , expires = 1 )
660660
661661 blacklist = [
662662 "/account/login" ,
You can’t perform that action at this time.
0 commit comments