(req, res, next)
| 161 | return md5.update(password).digest('base64'); |
| 162 | } |
| 163 | async singout(req, res, next){ |
| 164 | try{ |
| 165 | delete req.session.admin_id; |
| 166 | res.send({ |
| 167 | status: 1, |
| 168 | success: '退出成功' |
| 169 | }) |
| 170 | }catch(err){ |
| 171 | console.log('退出失败', err) |
| 172 | res.send({ |
| 173 | status: 0, |
| 174 | message: '退出失败' |
| 175 | }) |
| 176 | } |
| 177 | } |
| 178 | async getAllAdmin(req, res, next){ |
| 179 | const {limit = 20, offset = 0} = req.query; |
| 180 | try{ |
nothing calls this directly
no outgoing calls
no test coverage detected