profile: log out of all sessions

This was hidden in urbit-os-v1.0.44 until we could ensure it actually
logged you out of all sessions. It requires a hidden input to function,
so it's added here.

Fixes #2649.
This commit is contained in:
Matilde Park 2020-08-27 15:11:03 -04:00
parent 13b5851b71
commit 3c0dc59747

View File

@ -24,18 +24,18 @@ export default function SecuritySettings({ api }: SecuritySettingsProps) {
</Button>
</form>
</Box>
{/* <Box color="black" fontSize={0} mt={4} fontWeight={700}>
<Box color="black" fontSize={0} mt={4} fontWeight={700}>
Log out of all sessions
</Box> */}
{/* Restore after testing sending 'all' in POST body
</Box>
<Box fontSize={0} mt={2} color="gray">
You will be logged out of all browsers that have currently logged into your Urbit.
<form method="post" action="/~/logout">
<input type="hidden" name="all" />
<Button error narrow mt={4} border={1}>
Logout
</Button>
</form>
</Box> */}
</Box>
</Box>
);
}