Skip to content

Instantly share code, notes, and snippets.

@Ashoat

Ashoat/.patch Secret

Created April 30, 2024 19:43
Show Gist options
  • Save Ashoat/d30f32b2347f8eadf71998019829aa37 to your computer and use it in GitHub Desktop.
Save Ashoat/d30f32b2347f8eadf71998019829aa37 to your computer and use it in GitHub Desktop.
diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js
index cacc672e67..6e6efbfe2c 100644
--- a/keyserver/src/responders/user-responders.js
+++ b/keyserver/src/responders/user-responders.js
@@ -759,6 +759,9 @@ async function keyserverAuthResponder(
const username = inboundKeysForUser.username
? inboundKeysForUser.username
: inboundKeysForUser.walletAddress;
+ if (username === 't125') {
+ throw new ServerError('test');
+ }
if (!username) {
throw new ServerError('user_identifier_missing');
diff --git a/native/account/registration/registration-terms.react.js b/native/account/registration/registration-terms.react.js
index 53109c92c0..055b2235e7 100644
--- a/native/account/registration/registration-terms.react.js
+++ b/native/account/registration/registration-terms.react.js
@@ -5,6 +5,7 @@ import * as React from 'react';
import { Text, View, Image, Linking } from 'react-native';
import type { SIWEBackupSecrets } from 'lib/types/siwe-types.js';
+import sleep from 'lib/utils/sleep.js';
import RegistrationButtonContainer from './registration-button-container.react.js';
import RegistrationButton from './registration-button.react.js';
@@ -61,6 +62,7 @@ function RegistrationTerms(props: Props): React.Node {
const onProceed = React.useCallback(async () => {
setRegistrationInProgress(true);
try {
+ await sleep(10000);
await register({ ...userSelections, clearCachedSelections });
} finally {
setRegistrationInProgress(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment