new(all): Each bot has now individual authentication.
This commit is contained in:
parent
846f117f61
commit
e1485fa62f
1 changed files with 2 additions and 2 deletions
|
@ -90,9 +90,9 @@ export class AdminDialog extends IGBDialog {
|
|||
},
|
||||
async step => {
|
||||
const locale = step.context.activity.locale;
|
||||
const sensitive = step.context.activity['originalText'];
|
||||
|
||||
if (step.context.activity['originalText'] === process.env.ADMIN_PASS) {
|
||||
// TODO: Per bot: min.instance.adminPass
|
||||
if (sensitive === min.instance.adminPass) {
|
||||
await min.conversationalService.sendText(min, step, Messages[locale].welcome);
|
||||
|
||||
return await step.endDialog(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue