MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / OrganizationSetupPage

Function OrganizationSetupPage

packages/ui/src/views/organization/index.jsx:50–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 })
49
50const OrganizationSetupPage = () => {
51 useNotifier()
52 const { isEnterpriseLicensed, isOpenSource } = useConfig()
53
54 const orgNameInput = {
55 label: 'Organization',
56 name: 'organization',
57 type: 'text',
58 placeholder: 'Acme'
59 }
60
61 const usernameInput = {
62 label: 'Username',
63 name: 'username',
64 type: 'text',
65 placeholder: 'John Doe'
66 }
67
68 const passwordInput = {
69 label: 'Password',
70 name: 'password',
71 type: 'password',
72 placeholder: '********'
73 }
74
75 const confirmPasswordInput = {
76 label: 'Confirm Password',
77 name: 'confirmPassword',
78 type: 'password',
79 placeholder: '********'
80 }
81
82 const emailInput = {
83 label: 'EMail',
84 name: 'email',
85 type: 'email',
86 placeholder: 'user@company.com'
87 }
88
89 const [email, setEmail] = useState('')
90 const [password, setPassword] = useState('')
91 const [confirmPassword, setConfirmPassword] = useState('')
92 const [username, setUsername] = useState('')
93 const [orgName, setOrgName] = useState('')
94
95 const [loading, setLoading] = useState(false)
96 const [authError, setAuthError] = useState('')
97 const [successMsg, setSuccessMsg] = useState(undefined)
98
99 const loginApi = useApi(authApi.login)
100 const registerAccountApi = useApi(accountApi.registerAccount)
101 const navigate = useNavigate()
102
103 const getDefaultProvidersApi = useApi(loginMethodApi.getDefaultLoginMethods)
104 const [configuredSsoProviders, setConfiguredSsoProviders] = useState([])
105
106 const register = async (event) => {
107 event.preventDefault()

Callers

nothing calls this directly

Calls 3

useConfigFunction · 0.90
useNotifierFunction · 0.85
signInWithSSOFunction · 0.70

Tested by

no test coverage detected