Added Phases to Projects
This commit is contained in:
@@ -38,16 +38,15 @@ const fields = [{
|
||||
|
||||
const onSubmit = async (data) => {
|
||||
|
||||
const { error } = await supabase.auth.signInWithPassword({
|
||||
const {error, data:{ user}} = await supabase.auth.signInWithPassword({
|
||||
email: data.email,
|
||||
password: data.password
|
||||
})
|
||||
if(error) {
|
||||
console.log(error.toString())
|
||||
alert(error.toString())
|
||||
} else {
|
||||
console.log("Login Successful")
|
||||
dataStore.changeTenant()
|
||||
dataStore.initializeData(user.id)
|
||||
router.push("/")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user