File tree Expand file tree Collapse file tree
FFOracle/Controllers/Public Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ public class UsersController : ControllerBase
1313 private readonly Client _supabase ;
1414 private readonly SupabaseAuthService _authService ;
1515
16+ private readonly int startingTokens = 100 ; //the number of tokens a new user gets to start
17+
1618 public UsersController ( Client supabase , SupabaseAuthService authService )
1719 {
1820 _supabase = supabase ;
@@ -48,7 +50,7 @@ public async Task<IActionResult> SignUp([FromBody] SignUpRequest req)
4850 Fullname = string . IsNullOrWhiteSpace ( req . Fullname ) ? null : req . Fullname ,
4951 PhoneNumber = string . IsNullOrWhiteSpace ( req . PhoneNumber ) ? null : req . PhoneNumber ,
5052 AllowEmails = req . AllowEmails ,
51- TokensLeft = 1 , // user starts with 1 free token
53+ TokensLeft = startingTokens
5254 } ;
5355
5456 await _supabase . From < Models . Supabase . User > ( ) . Insert ( user ) ;
You can’t perform that action at this time.
0 commit comments