Skip to content

Commit

Permalink
fixing disabled user
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiki270 committed Apr 10, 2019
1 parent 8d93364 commit 9e7281e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/ApiCore/Managers/UsersManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class UsersManager {
guard let user = user else {
let user = try source.asUser(on: req)
user.verified = true
user.disabled = false
return user.save(on: req).map(to: User.self) { _ in
return user
}
Expand Down

0 comments on commit 9e7281e

Please sign in to comment.