Download pool/shard009/JavaScript/0056320_password-reset.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard009/JavaScript/0056320_password-reset.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard009/JavaScript/0056320_password-reset.js
-
curl -L -o 0056320_password-reset.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard009/JavaScript/0056320_password-reset.js
497 Bytes
| import { storageKeys } from './webAuth' | |
| import { parameter } from '../../get-url-parameter' | |
| import adminUrls from '../../admin-urls' | |
| import browser from '../../browser' | |
| import sessionStorage from '../../sessionStorage' | |
| module.exports = function () { | |
| Object.keys(storageKeys) | |
| .forEach(k => sessionStorage.remove(storageKeys[k])) | |
| const action = parameter('success') === 'true' | |
| ? () => browser.redirect(adminUrls.login) | |
| : () => browser.redirect(adminUrls.fiveHundred) | |
| action() | |
| } | |