Update src/extensions/jg_scratchAuth/legacy.js
Browse files
src/extensions/jg_scratchAuth/legacy.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
| 1 |
-
const ProjectPermissionManager = require('../../util/project-permissions');
|
| 2 |
-
|
| 3 |
const authenticate = (thisObject, args) => {
|
| 4 |
if (!thisObject.keepAllowingAuthBlock) { // user closed popup before it was finished
|
| 5 |
if (!thisObject.disableConfirmationShown) { // we didnt ask them to confirm yet or they only declined it once, so we let them know every time
|
| 6 |
-
const areYouSure =
|
| 7 |
if (!areYouSure) { // they clicked no, dont show confirmation again
|
| 8 |
thisObject.disableConfirmationShown = true;
|
| 9 |
return "The user has declined the ability to authenticate.";
|
|
|
|
|
|
|
|
|
|
| 1 |
const authenticate = (thisObject, args) => {
|
| 2 |
if (!thisObject.keepAllowingAuthBlock) { // user closed popup before it was finished
|
| 3 |
if (!thisObject.disableConfirmationShown) { // we didnt ask them to confirm yet or they only declined it once, so we let them know every time
|
| 4 |
+
const areYouSure = true;
|
| 5 |
if (!areYouSure) { // they clicked no, dont show confirmation again
|
| 6 |
thisObject.disableConfirmationShown = true;
|
| 7 |
return "The user has declined the ability to authenticate.";
|