This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| models.User.find({ $or: [{"username":String(reqUsername)},{"email":String(reqEmail)}]}, function(err, user) { | |
| console.log('user = ' + JSON.stringify(user)); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| restart -f | |
| # Refreshing C:/Users/zdw5010/Documents/331/mipsverilog/work.Driver | |
| # Loading work.Driver | |
| # Refreshing C:/Users/zdw5010/Documents/331/mipsverilog/work.Datapath | |
| # Loading work.Datapath | |
| run -all | |
| # 0 Driver.dp write regs | |
| # 5 Driver Clock = 1 | |
| # 5 Driver.dp fetch PC = 00000000 IR = 00000000, Instruction Number = 000 | |
| # 5 Driver.dp decode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server.serializeClient(function(clientString, done) { | |
| // @TODO for some reason clientJSON is not valid JSON | |
| console.log('clientString = ' + clientString); | |
| var client = JSON.parse(clientString); | |
| console.log('_id = ' + client._id); | |
| console.log('name = ' + client.name); | |
| console.log('secret = ' + client.secret); | |
| done(null, client._id); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| clientID = '1234'; | |
| ... | |
| models.Client.find({clientID: clientID}, function(err, client) { | |
| console.log('ClientPasswordStrategy client = ' + client); | |
| console.log('client.clientID = ' + client.clientID); | |
| } | |
| Output: |
NewerOlder