-
https://github.com/demopark/sequelize-docs-Zh-CN/tree/v5
查看全部 -
## fixed: tableName bug ✅cms_ 表名不一致,导致登录失败!
cms-koa/app/api/cms/user.js
cms-koa/app/model/user.js
查看全部 -
用户不存在,
# login table
root 123456
# user table
root root
admin admin
# koa-imooc 代码冗余 bug
throw new NotFound({ msg: '用户不存在', errorCode: 10021 });
查看全部 -
mysql 没有密码,怎么版
查看全部 -
https://github.com/TaleLin/lin-cms-koa/
https://github.com/TaleLin/lin-cms-koa/tree/imooc-island
https://codeload.github.com/TaleLin/lin-cms-koa/zip/imooc-island
查看全部 -
root
520imooc
查看全部 -
-- ----------------------------
-- 插入超级管理员
-- 插入root分组
-- ----------------------------
BEGIN;
INSERT INTO cms_user(id, username, nickname)
VALUES (1, 'root', 'root');
INSERT INTO cms_user_identity (id, user_id, identity_type, identifier, credential)
VALUES (1, 1, 'USERNAME_PASSWORD', 'root',
'sha1$c419e500$1$84869e5560ebf3de26b6690386484929456d6c07');
-- 123456 sha1$c419e500$1$84869e5560ebf3de26b6690386484929456d6c07
查看全部 -
module.exports = {
db: {
database: 'lin-cms',
host: 'localhost',
dialect: 'mysql',
port: 3306,
username: 'root',
password: '123456',
logging: false,
timezone: '+08:00'
},
secret:
'\x88W\xf09\x91\x07\x98\x89\x87\x96\xa0A\xc68\xf9\xecJJU\x17\xc5V\xbe\x8b\xef\xd7\xd8\xd3\xe6\x95*4'
};
查看全部 -
/**
* 存储tokens
* @param {string} accessToken
* @param {string} refreshToken
*/
export function saveTokens(accessToken, refreshToken) {
localStorage.setItem('access_token', `Bearer ${accessToken}`)
localStorage.setItem('refresh_token', `Bearer ${refreshToken}`)
}
/**
* 存储access_token
* @param {string} accessToken
*/
export function saveAccessToken(accessToken) {
localStorage.setItem('access_token', `Bearer ${accessToken}`)
}
/**
* 获得某个token
* @param {string} tokenKey
*/
export function getToken(tokenKey) {
return localStorage.getItem(tokenKey)
}
/**
* 移除token
*/
export function removeToken() {
localStorage.removeItem('access_token')
localStorage.removeItem('refresh_token')
}
查看全部 -
https://codeload.github.com/TaleLin/lin-cms-koa/zip/master
https://codeload.github.com/TaleLin/lin-cms-vue/zip/master
查看全部 -
git clone -b imooc-island
查看全部 -
自定义异常
查看全部 -
imooc 123456
root lincms123
用户名: root
密码: imooc520
查看全部 -
权限管理
动态路由
菜单级别 权限控制
按钮级别 权限控制
查看全部 -
http://qinchenju.com/island/
https://www.talelin.com/
https://github.com/TaleLin/lin-cms-koa
https://github.com/TaleLin
查看全部
举报