Skip to content

Commit 65bceb3

Browse files
committed
Remove ability to auth for saving to zotero.org from prefs
Closes #464
1 parent 72445ce commit 65bceb3

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/common/preferences/preferences.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,11 @@
4646
<div class="group-title">Save to Zotero.org</div>
4747
<div class="group-content">
4848
<div id="general-authorization-not-authorized">
49-
<p>Zotero Connector must be authorized in order to save items to zotero.org when Zotero is not open.</p>
50-
<p><input type="button" value="Authorize" id="general-button-authorize"/></p>
49+
<p>Zotero Connector is not currently authorized to save items to zotero.org. You will be prompted for authorization if you try to save items while Zotero is not open.</p>
5150
</div>
5251
<div id="general-authorization-authorized" style="display:none">
5352
<p>Zotero Connector will save items to zotero.org as <span id="general-span-authorization-username"></span> when Zotero is not open.</p>
5453
<p>
55-
<input type="button" value="Reauthorize" id="general-button-reauthorize"/>
5654
<input type="button" value="Clear Credentials" id="general-button-clear-credentials"/>
5755
</p>
5856
<p>

src/common/preferences/preferences.jsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ Zotero_Preferences.General = {
166166

167167
ReactDOM.render(React.createElement(Zotero_Preferences.Components.ClientStatus, null),
168168
document.getElementById("client-status"));
169-
document.getElementById("general-button-authorize").onclick =
170-
document.getElementById("general-button-reauthorize").onclick = Zotero_Preferences.General.authorize;
171169
document.getElementById("general-button-clear-credentials").onclick = Zotero_Preferences.General.clearCredentials;
172170

173171
Zotero.API.getUserInfo().then(Zotero_Preferences.General.updateAuthorization);
@@ -185,18 +183,6 @@ Zotero_Preferences.General = {
185183
}
186184
},
187185

188-
/**
189-
* Authorizes the user
190-
*/
191-
authorize: function() {
192-
Zotero.API.authorize().then(function(data) {
193-
Zotero_Preferences.General.updateAuthorization(data);
194-
}, function(e) {
195-
if (e.message.includes('cancelled')) return;
196-
alert("Authorization could not be completed.\n\n"+e.message)
197-
});
198-
},
199-
200186
/**
201187
* Clears authorization
202188
*/

0 commit comments

Comments
 (0)