File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class _MobileRegistrationScreenState extends State<MobileRegistrationScreen> {
173173 base64.encode (_registrationData.keyPair.publicKey));
174174
175175 if (response.statusCode == 200 ) {
176- saveRegistration ();
176+ await saveRegistration ();
177177
178178 Navigator .pop (context); // Remove loading screen
179179 Navigator .pop (context, true ); // Pop this
@@ -253,13 +253,13 @@ class _MobileRegistrationScreenState extends State<MobileRegistrationScreen> {
253253 }
254254 }
255255
256- void saveRegistration () async {
256+ saveRegistration () async {
257257 await savePrivateKey (_registrationData.keyPair.secretKey.extractBytes ());
258258 await savePublicKey (_registrationData.keyPair.publicKey);
259259 await saveFingerprint (false );
260+ await savePhrase (_registrationData.phrase);
260261 await saveEmail (_registrationData.email, null );
261262 await saveDoubleName (_registrationData.doubleName);
262- await savePhrase (_registrationData.phrase);
263263
264264 FlutterPkid client = await getPkidClient ();
265265 client.setPKidDoc ('email' , json.encode ({'email' : _registrationData.email}));
You can’t perform that action at this time.
0 commit comments