mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 08:16:28 +00:00
use hash instead of path for key
This commit is contained in:
parent
e332dc63e8
commit
5dff12ea70
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.1.0] - 2021-05-16
|
||||
|
||||
### Security
|
||||
|
||||
- Using hash `#` instead of path
|
||||
|
||||
## [1.0.11] - 2021-05-08
|
||||
|
||||
### Added
|
||||
|
@ -68,7 +68,7 @@
|
||||
type="text"
|
||||
readonly
|
||||
label="share link"
|
||||
value="{window.location.origin}/note/{result.id}/{result.password}"
|
||||
value="{window.location.origin}/note/{result.id}#{result.password}"
|
||||
copy
|
||||
data-testid="note-share-link"
|
||||
/>
|
||||
|
@ -16,8 +16,8 @@
|
||||
import Button from '$lib/ui/Button.svelte'
|
||||
|
||||
export let id: string
|
||||
export let password: string
|
||||
|
||||
let password: string
|
||||
let note: NotePublic | null = null
|
||||
let exists = false
|
||||
|
||||
@ -28,6 +28,8 @@
|
||||
try {
|
||||
loading = true
|
||||
error = null
|
||||
password = window.location.hash.slice(1)
|
||||
console.log(password)
|
||||
await info(id)
|
||||
exists = true
|
||||
} catch {
|
Loading…
Reference in New Issue
Block a user