Thank you! I was wondering about a little bit of extra security. Do you have idea how to implement 2 password boxes that check if they're the same before changing the password?
@ChristophGeiser3 ай бұрын
You just add a conditional action before you start the password change process. There you check if the content of both texte widgets are equal. Then add all the actions for changing the password to the "true" part and add an alert with an error message to the false part.
@JuanPerez-vv5lk9 ай бұрын
Excellent video. but why didn't you do a demonstration to see how it works?
@MEdel22047 ай бұрын
Thank you so much!!
@rogeriosca7 ай бұрын
Thank you!!!
@wesseldieben74908 ай бұрын
Thanks for the video, this only works for web application right, how could this work with an mobile application?
@aplicativoagricola9 ай бұрын
I liked the video, it's a shame that I couldn't understand it properly so far it didn't work, I could have re-recorded it and shown it step by step. Maybe it would be interesting
@rapidmvp9 ай бұрын
I will be doing a step by step setting up an app including the auth in a couple of weeks. I’ll film as I build so may be easier to follow.
@yorgohoebeke10 ай бұрын
Thank you!
@daleoshea42048 ай бұрын
Where do I find my site URL for the Supabase email If i haven't published my app yet?
@geopopos8 ай бұрын
for some reason the redirectTo url is going to localhost:3000. did you run into this issue at any point? i did update my supabase url configurations
@rapidmvp8 ай бұрын
Did you also add the site url, it’s in the section above on that page. I think localhost:3000 is the default. It needs that and then the individual page url for redirection.
@geopopos8 ай бұрын
@@rapidmvp if you're talking about in the supabase URL config yeah I changed the site_url and updated the allowed URL. if there is an area to do this in flutterflow no I did not 👀
@rapidmvp8 ай бұрын
@@geopopos there shouldn’t be anything to do in Flutterflow on the url side. As long as you publish the app and there is a page that Supabase points to, it should be good.
@anderock027 ай бұрын
this work in a mobile app?
@jaguarconsultoriadigital814710 ай бұрын
Grateful !!!
@Wasi_sirshaar10 ай бұрын
Can we create a custom action for signup also? need guidelines.
@rapidmvp10 ай бұрын
Thinking about this already as I want to add a Captcha, which seems only natively possible with Firebase.
@louisgautier76224 ай бұрын
@@rapidmvp Hello. Do you think about doing the same tutorial for email verification when user sign up ? It would be awesome and I think lot of people search for this. Thanks !
@rapidmvp4 ай бұрын
@@louisgautier7622 it’s on the list. I may do this next week.
@louisgautier76224 ай бұрын
@@rapidmvp Thank you very much. May I ask a question about this password tutorial. I setted up everything. I received the email, click on the link and go to the new password page. But when I want to update it, nothing happen when I click on the button. One thing is I didn’t understand how the function know which user needs to be updated, because no one is really authenticated when updating his password. Thank you very much for your help !
@rapidmvp4 ай бұрын
@@louisgautier7622 The url of the magic link in the password reset email contains the access token that logs the user in, therefore allowing then to reset password
@monlak017 ай бұрын
I am getting this error from FF: "The function 'UserAttributes' isn't defined. Try importing the library that defines 'UserAttributes', correcting the name to the name of an existing function, or defining a function named 'UserAttributes'." The package is being called at the beginning. I have no idea where that function should be.
@rapidmvp7 ай бұрын
I’ll take a look and get back to you
@monlak017 ай бұрын
@@rapidmvp It works though. I checked the "Exclude from compilation", the error becomes a warning. I deployed and it worked well... :)
@emeriktremblay38815 ай бұрын
I have the same error
@eemersonalmeida6 ай бұрын
hello, can you help with this error: The setter 'customError' isn't defined for the type 'FFAppState'. Try importing the library that defines 'customError', correcting the name to the name of an existing setter, or defining a setter or field named 'customError'.dartundefined_setter. tks
@rapidmvp6 ай бұрын
You need to create an app state called customError
@eemersonalmeida6 ай бұрын
@@rapidmvp tks man! it works.
@anaphylaxis659910 ай бұрын
Is it the same with the update email?
@rapidmvp10 ай бұрын
You can just use the Auth update email action within FF for this
@anaphylaxis659910 ай бұрын
@@rapidmvpi’m not sure how to set-up the update email part of it after trying to do it in the first part, also is there a way to possibly redirect the user to the app instead of the web when they clicked the forgot password link in the confirmation email as i’m using it for an app?
@rapidmvp10 ай бұрын
@@anaphylaxis6599 I can do a quick video on update email next week. I think with Supabase it has to go via url for the password update. Doing it with one time password via sms may work though.
@anaphylaxis659910 ай бұрын
hello there seems to be an error with this now? can you check again please? thank you so much
@rapidmvp10 ай бұрын
I’ll have a look into it.
@monlak017 ай бұрын
@@rapidmvp seems like it's not working because FF is not identifying the 'UserAttributes' function that is used.
@rapidmvp7 ай бұрын
@@monlak01 Before the “Future changePassword” line, you need: Import ‘package:supabase/supabase.dart’;
@monlak017 ай бұрын
@@rapidmvp wow... I thought it was already being called (and when I added it, FF said it was redundant...but seems like it is not! :) You are right, it worked.
@sanjaychristian8082Ай бұрын
I had some issues, but this is what i did:import 'package:supabase_flutter/supabase_flutter.dart'; Future newCustomActionResetPassword(String? newPassword) async { // Add your function code here! try { if (newPassword == null || newPassword.isEmpty) { throw Exception('New password cannot be null or empty'); } final response = await Supabase.instance.client.auth.updateUser( UserAttributes( password: newPassword, ), ); // Return true if the response contains a user return response.user != null; } catch (error) { // Handle errors if needed print('Error: $error'); FFAppState().update(() { FFAppState().customError = 'Error: $error'; }); // Indicate that the password change failed return false; } }