diff options
| author | Adam Soltys <[email protected]> | 2022-08-31 13:50:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-31 13:50:03 -0700 |
| commit | c258d8610848614563a015f4ca22b4cea574a197 (patch) | |
| tree | 7c7f6a4d19d10a19aa3046da73a6b55973fcaf7b /src/routes/enable2fa | |
| parent | c1ce0c9a89154862b6441bc00c459c3a6591de55 (diff) | |
| download | coinos-ui-c258d8610848614563a015f4ca22b4cea574a197.tar.gz coinos-ui-c258d8610848614563a015f4ca22b4cea574a197.zip | |
hook up 2fa setting
Diffstat (limited to 'src/routes/enable2fa')
| -rw-r--r-- | src/routes/enable2fa/+server.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/routes/enable2fa/+server.js b/src/routes/enable2fa/+server.js new file mode 100644 index 00000000..7bee4f4b --- /dev/null +++ b/src/routes/enable2fa/+server.js @@ -0,0 +1,8 @@ +import { auth, post } from '$lib/utils'; + +export async function PUT({ request }) { + let body = await request.json(); + let res = await post('/2fa', body, auth(request)); + + return new Response(JSON.stringify(res)); +} |
