Skip to content

how we can use requestPassword? #4

@A1Gard

Description

@A1Gard

My sample:


window.FakeTerminal.command.ops = function (instance) {

        //  Extend the base command
        window.FakeTerminal.command.apply(this, arguments);

        var base = this;

        base.info = function () {
            return {
                private: false,
                description: 'This command doesn\'t do anything terribly exciting'
            };
        };


        base.execute = function (foo, bar) {
            instance.output.write('The value of foo is: ' + foo);
            instance.output.write('The value of bar is: ' + bar);
            base.deferred.resolve();
            var xx = '';
            var ss = instance.input.requestPassword(xx);
            return base.deferred.promise();
        };

        return base;
    };

What's the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions