Explorar el Código

免登录的bug

lrf hace 1 año
padre
commit
905a6709ff
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/service/teacher.js

+ 2 - 2
app/service/teacher.js

@@ -28,8 +28,8 @@ class TeacherService extends CrudService {
     for (const tea of res) {
     for (const tea of res) {
       const r = await this.umodel.findOne({ uid: tea._id }, '+passwd');
       const r = await this.umodel.findOne({ uid: tea._id }, '+passwd');
       if (r) {
       if (r) {
-        const { passwd } = r;
-        tea.secret = passwd.secret;
+        // const { passwd } = r;
+        // tea.secret = passwd.secret;
         tea.openid = _.get(r, 'openid');
         tea.openid = _.get(r, 'openid');
       }
       }
     }
     }