Page MenuHomePhabricator

D11268.id38038.diff
No OneTemporary

D11268.id38038.diff

diff --git a/keyserver/src/user/login.js b/keyserver/src/user/login.js
--- a/keyserver/src/user/login.js
+++ b/keyserver/src/user/login.js
@@ -155,6 +155,21 @@
return identity_info;
} catch (err) {
console.warn('Failed to register user: ' + getMessageForException(err));
+ if (userInfo.usingIdentityCredentials) {
+ if (process.env.NODE_ENV === 'development') {
+ console.warn(
+ 'Please re-enter `nix develop` and provide new user credentials',
+ );
+ } else {
+ console.warn(
+ 'For keyservers running in Docker, set different ' +
+ 'user credentials in COMM_JSONCONFIG_secrets_user_credentials, ' +
+ 'remove all tables from the database, and restart.' +
+ '\nFor keyservers outside of Docker, re-enter `nix develop` ' +
+ 'and provide new user credentials',
+ );
+ }
+ }
throw new ServerError('identity_auth_failed');
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 7:25 PM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2531439
Default Alt Text
D11268.id38038.diff (1002 B)

Event Timeline