feat: Implement registration with email
This commit is contained in:
parent
dddd44a560
commit
b834baa6dc
5 changed files with 176 additions and 49 deletions
7
lib/utils/get_client_secret.dart
Normal file
7
lib/utils/get_client_secret.dart
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import 'dart:math';
|
||||
|
||||
const _chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
|
||||
Random _rnd = Random();
|
||||
|
||||
String getClientSecret(int length) => String.fromCharCodes(Iterable.generate(
|
||||
length, (_) => _chars.codeUnitAt(_rnd.nextInt(_chars.length))));
|
||||
Loading…
Add table
Add a link
Reference in a new issue