diff --git a/iwsy/resources/ecs/fileman.txt b/iwsy/resources/ecs/fileman.txt index 1740eed..2741266 100644 --- a/iwsy/resources/ecs/fileman.txt +++ b/iwsy/resources/ecs/fileman.txt @@ -124,10 +124,10 @@ Show: get UserRecord from storage as `.user` put property `email` of UserRecord into Email - get Password from storage as `password` + get Password from storage as `user.password` put property `home` of UserRecord into Home - put Home cat `/` cat property `id` of UserRecord cat `images` into Home - put `users/` cat Home cat `/images` into Home + put Home cat `/` cat property `id` of UserRecord cat `/images` into Home + put `users/` cat Home into Home get CurrentPath from storage as `.filepath` if CurrentPath is empty put Home into CurrentPath @@ -137,7 +137,8 @@ Browser: rest get Content from `ulist/` cat Email cat `/` cat Password cat `/` cat CurrentPath cat `?v=` cat now or begin alert `Failed to list files.` - stop + put empty into storage as `.filepath` + go to Show end put CurrentPath into Path set the content of Location to `Current path: ` cat Path diff --git a/iwsy/rest.php b/iwsy/rest.php index 76e67fe..427199c 100644 --- a/iwsy/rest.php +++ b/iwsy/rest.php @@ -103,7 +103,7 @@ case 'validate': // Validate a hash // Endpoint: {site root}/rest.php/validate/{encrypted-value}/{value-to-validate} - print password_verify($request[1], $request[0]) ? 'yes' : 'no'; + print password_verify($request[1], str_replace('~', '/', $request[0])) ? 'yes' : 'no'; exit; } break;