           isRegistration : yes
 
         JUser.changeUsernameByAccount _options, (err, newToken_) ->
-          return callback err  if err
+          return next err  if err
           newToken = newToken_
-          queue.next()
-
-      ->
-        user.setPassword password, (err) ->
-          return callback err  if err
-          queue.next()
-
-      -> callback null, newToken
+          next()
+
+      (next) ->
+        user.setPassword password, next
 
     ]
 
-    daisy queue
+    async.series queue, (err) ->
+      return callback err  if err
+      callback null, newToken
 
 
   updateAccountInfo = (options, callback) ->


    queue = [

      ->
        # fetching account, will be used to check login constraints of user
        user.fetchOwnAccount (err, account_) ->
          return callback err  if err
          account = account_
          queue.next()

      ->
        # checking login constraints
        checkBlockedStatus user, (err) ->
          return callback err  if err
          queue.next()

      ->
        # updating user passwordStatus if necessary
        updateUserPasswordStatus user, (err) ->
          return callback err  if err
          replacementToken = createId()
          queue.next()

      ->
        # updating session data after login
        sessionUpdateOptions =
          $set                :


    queue = [

      (next) =>
        @extractOauthFromSession client.sessionToken, (err, foreignAuthInfo) ->
          if err
            console.log 'Error while getting oauth data from session', err
            return next()

          return next()  unless foreignAuthInfo

          # Password is not required for GitHub users since they are authorized via GitHub.
          # To prevent having the same password for all GitHub users since it may be
