From 9dab48d1359c4945b3004e1c04fb33aecd624217 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 30 Oct 2018 04:39:13 +0100 Subject: [PATCH] Only show multiuser master key on click and allow download as file --- plugins/disabled-Multiuser/MultiuserPlugin.py | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/plugins/disabled-Multiuser/MultiuserPlugin.py b/plugins/disabled-Multiuser/MultiuserPlugin.py index f5adf077..8e4a32f2 100644 --- a/plugins/disabled-Multiuser/MultiuserPlugin.py +++ b/plugins/disabled-Multiuser/MultiuserPlugin.py @@ -169,13 +169,27 @@ class UiWebsocketPlugin(object): def actionCertAdd(self, *args, **kwargs): super(UiWebsocketPlugin, self).actionCertAdd(*args, **kwargs) master_seed = self.user.master_seed - message = "" - message += "Hello, welcome to ZeroProxy!
A new, unique account created for you:
" - message += "
" + master_seed + "
" - message += "
This is your private key, save it, so you can login next time.
Without this key, your registered account will be lost forever!

" - message += "Ok, Saved it!

" - message += "This site allows you to browse ZeroNet content, but if you want to secure your account
" - message += "and help to make a better network, then please run your own ZeroNet client.
" + message = """ + + Hello, welcome to ZeroProxy!
A new, unique account created for you:
+ +
+ or Download backup as text file +
+
+ This is your private key, save it, so you can login next time.
+ Warning: Without this key, your account will be lost forever! +

+ Ok, Saved it!

+ This site allows you to browse ZeroNet content, but if you want to secure your account
+ and help to keep the network alive, then please run your own ZeroNet client.
+ """.replace("{master_seed}", master_seed) self.cmd("notification", ["info", message]) def actionPermissionAdd(self, to, permission):