mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
hotfix.修复无法用密码访问的bug
This commit is contained in:
@@ -28,6 +28,7 @@ const Slug = props => {
|
||||
*/
|
||||
const validPassword = passInput => {
|
||||
const encrypt = md5(post.slug + passInput)
|
||||
console.log('passInput', passInput, post.slug)
|
||||
if (passInput && encrypt === post.password) {
|
||||
setLock(false)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user