mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-16 07:42:27 +03:00
Add support for managing sessions (#415)
* Allow node type prop in setting tile Signed-off-by: Ajay Bura <ajbura@gmail.com> * Update popup window max height Signed-off-by: Ajay Bura <ajbura@gmail.com> * Add device management setting Signed-off-by: Ajay Bura <ajbura@gmail.com> * Add password based login Signed-off-by: Ajay Bura <ajbura@gmail.com> * truncate long list of verified devices Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
fe997d8b01
commit
005434f79b
6 changed files with 251 additions and 7 deletions
|
@ -26,6 +26,7 @@ import ImportE2ERoomKeys from '../../molecules/import-export-e2e-room-keys/Impor
|
|||
import ExportE2ERoomKeys from '../../molecules/import-export-e2e-room-keys/ExportE2ERoomKeys';
|
||||
|
||||
import ProfileEditor from '../profile-editor/ProfileEditor';
|
||||
import DeviceManage from './DeviceManage';
|
||||
|
||||
import SunIC from '../../../../public/res/ic/outlined/sun.svg';
|
||||
import LockIC from '../../../../public/res/ic/outlined/lock.svg';
|
||||
|
@ -167,15 +168,16 @@ function SecuritySection() {
|
|||
return (
|
||||
<div className="settings-security">
|
||||
<div className="settings-security__card">
|
||||
<MenuHeader>Device Info</MenuHeader>
|
||||
<MenuHeader>Session Info</MenuHeader>
|
||||
<SettingTile
|
||||
title={`Device ID: ${initMatrix.matrixClient.getDeviceId()}`}
|
||||
title={`Session ID: ${initMatrix.matrixClient.getDeviceId()}`}
|
||||
/>
|
||||
<SettingTile
|
||||
title={`Device key: ${initMatrix.matrixClient.getDeviceEd25519Key().match(/.{1,4}/g).join(' ')}`}
|
||||
content={<Text variant="b3">Use this device ID-key combo to verify or manage this session from Element client.</Text>}
|
||||
title={`Session key: ${initMatrix.matrixClient.getDeviceEd25519Key().match(/.{1,4}/g).join(' ')}`}
|
||||
content={<Text variant="b3">Use this session ID-key combo to verify or manage this session.</Text>}
|
||||
/>
|
||||
</div>
|
||||
<DeviceManage />
|
||||
<div className="settings-security__card">
|
||||
<MenuHeader>Encryption</MenuHeader>
|
||||
<SettingTile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue