mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-11 00:22:49 +00:00
优化短信验证码验证
This commit is contained in:
parent
188f6263cf
commit
32a261700b
@ -40,7 +40,7 @@ export class UserSmsService extends BaseService {
|
||||
*/
|
||||
async checkCode(phone, code) {
|
||||
const cacheCode = await this.cacheManager.get(`sms:${phone}`);
|
||||
if (cacheCode === code) {
|
||||
if (cacheCode == code) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user