Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Commit

Permalink
Fixed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
dokun1 committed Jun 1, 2018
1 parent 8e6fa87 commit bf98109
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions Server/Sources/Application/Routes/RouteAutheticator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,11 @@ func setupBasicAuth(app: App) {
if let userProfile = request.userProfile {
Log.debug("User Successfully Authenticated \(userProfile.id)")
next()
//next()
return
}
// if 401 returned
Log.debug("User Authentication failed")
try response.status(.unauthorized).send("You are not authorized to use this API")

try response.status(.unauthorized).send("You are not authorized to use this API").end()
} catch {
Log.error("Could not send unauthorized status.")
}
Expand Down
3 changes: 0 additions & 3 deletions iOS/rainbow/Controller/Booklet/BookletBaseController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ class BookletBaseController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
UIApplication.shared.statusBarStyle = UIStatusBarStyle.default
ScoreEntry.ServerCalls.getCount { count, _ in
print("Current user counts: \(count?.totalUsers) have started, \(count?.totalUsersCompletingGame) have finished")
}
}
}

0 comments on commit bf98109

Please sign in to comment.