1
0
Fork 0

fix: Various website and repo fixes (#243)

- Fixes things in Oath flow, yet needs testing before we close #235
- Updates security notice, closes #240
- Fixes broken links to user profiles, closes #238

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/243
Co-authored-by: joostdecock <joost@joost.at>
Co-committed-by: joostdecock <joost@joost.at>
This commit is contained in:
joostdecock 2025-04-12 10:42:35 +00:00 committed by Joost De Cock
parent 7f5258d42d
commit c5b0daf390
12 changed files with 175 additions and 363 deletions

View file

@ -86,10 +86,10 @@ export const SignUp = ({ embed = false }) => {
const initOauth = async (provider) => {
setLoadingStatus([true, 'Contacting the backend'])
const result = await backend.oauthInit({ provider, language: 'en' })
if (result.success) {
const [status, body] = await backend.oauthInit(provider.toLowerCase())
if (status === 200 && body.result === 'success') {
setLoadingStatus([true, `Contacting ${provider}`])
window.location.href = result.data.authUrl
window.location.href = body.authUrl
}
}
const Heading = embed