|
@@ -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');
|
|
}
|
|
}
|
|
}
|
|
}
|