MCPcopy Create free account
hub / github.com/bailicangdu/node-elm / singout

Method singout

controller/admin/admin.js:163–177  ·  view source on GitHub ↗
(req, res, next)

Source from the content-addressed store, hash-verified

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{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected