mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
Merge pull request #1346 from AppFlowy-IO/appflowy-gotrue
chore: build appflowy gotrue based on fork repository
This commit is contained in:
commit
cd9ed8055d
2 changed files with 1 additions and 16 deletions
|
@ -1,12 +1,9 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM golang as base
|
||||
WORKDIR /go/src/supabase
|
||||
RUN git clone https://github.com/supabase/auth.git --depth 1 --branch v2.159.1
|
||||
RUN git clone https://github.com/AppFlowy-IO/auth.git --depth 1 --branch 0.1.0
|
||||
WORKDIR /go/src/supabase/auth
|
||||
COPY patch/mfa_enabled.patch .
|
||||
RUN git apply mfa_enabled.patch
|
||||
RUN CGO_ENABLED=0 go build -o /auth .
|
||||
RUN rm /go/src/supabase/auth/migrations/20240612123726_enable_rls_update_grants.up.sql
|
||||
|
||||
FROM alpine:3.20
|
||||
RUN adduser -D -u 1000 supabase
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
diff --git a/internal/api/settings.go b/internal/api/settings.go
|
||||
index bc2f3869..c0025f48 100644
|
||||
--- a/internal/api/settings.go
|
||||
+++ b/internal/api/settings.go
|
||||
@@ -36,6 +36,7 @@ type Settings struct {
|
||||
MailerAutoconfirm bool `json:"mailer_autoconfirm"`
|
||||
PhoneAutoconfirm bool `json:"phone_autoconfirm"`
|
||||
SmsProvider string `json:"sms_provider"`
|
||||
+ MFAEnabled bool `json:"mfa_enabled"` // preserve for backwards compatibility
|
||||
SAMLEnabled bool `json:"saml_enabled"`
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue