Refactor to make code more compact.
Esse commit está contido em:
@@ -8,9 +8,8 @@ exports.authenticate = function(request, callback, hub) {
|
||||
// Verify user based on request.
|
||||
// On failure, redirect user to auth form
|
||||
|
||||
hub.uid++;
|
||||
callback({
|
||||
username: 'username' + hub.uid,
|
||||
username: 'username' + (++hub.uid),
|
||||
displayname: 'John Smith',
|
||||
otherinfo: 'any other relevant key/values'
|
||||
});
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário