mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08: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…
Reference in New Issue
Block a user