-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: custom OTP for testers
- Loading branch information
Showing
12 changed files
with
104 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
25 changes: 18 additions & 7 deletions
25
.../ng/cove/web/data/model/MemberPhoneOtp.kt → ...kotlin/ng/cove/web/data/model/PhoneOtp.kt
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
package ng.cove.web.data.repo | ||
|
||
import ng.cove.web.data.model.MemberPhoneOtp | ||
import ng.cove.web.data.model.PhoneOtp | ||
import org.springframework.data.mongodb.repository.MongoRepository | ||
import java.util.Date | ||
|
||
interface MemberPhoneOtpRepo: MongoRepository<MemberPhoneOtp, String> { | ||
fun findByRef(ref: String): MemberPhoneOtp? | ||
interface MemberPhoneOtpRepo: MongoRepository<PhoneOtp, String> { | ||
fun countByCreatedAtIsAfter(createdAt: Date): Long | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package ng.cove.web.data.repo | ||
|
||
import ng.cove.web.data.model.Member | ||
import ng.cove.web.data.model.SecurityGuard | ||
import org.springframework.data.mongodb.repository.MongoRepository | ||
|
||
interface SecurityGuardRepo : MongoRepository<SecurityGuard?, String?>{ | ||
fun findByPhoneAndCommunityIdIsNotNull(phone: String): SecurityGuard? | ||
fun existsByPhoneAndCommunityIdIsNotNull(phone: String): Boolean | ||
fun existsByPhone(phone: String): Boolean | ||
fun findByPhone(phone: String): SecurityGuard? | ||
fun findFirstByTestOtpIsNotNullAndPhone(phone: String): SecurityGuard? | ||
fun findByIdAndTestOtp(id: String, testOtp: String): SecurityGuard? | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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