傻傻分不清之 Cookie、Session、Token、JWT 什么是认证(Authentication) 通俗地讲就是验证当前用户的身份,证明“你是你自己”(比如:你每天上下班打卡,都需要通过指纹打卡,当你的指纹和系统里录入的指纹相匹配时,就打卡成功) 互联网中的认证: 用户名密码登录 邮箱发送登 ...
分类:
其他好文 时间:
2020-01-30 19:04:57
阅读次数:
118
Django 中创建Model时报以下错误: TypeError: init() missing 1 required positional argument: ‘on_delete’ 代码如下: from django.db import models Create your models her ...
分类:
其他好文 时间:
2020-01-30 14:27:27
阅读次数:
69
报错: 解决方法: 输入select host,user,plugin,authentication_string from mysql.user; 看用户信息 更改加密方式,重置密码:(原加密方式为:alter user 'root'@'localhost' identified by '123' ...
分类:
数据库 时间:
2020-01-30 14:19:14
阅读次数:
102
1.InetAdress 单例 InetAdress.getByName().... 2.InetSocketAdress 2.authentication 认证 authorization授权 ...
分类:
编程语言 时间:
2020-01-29 20:09:25
阅读次数:
64
1.安装依赖 [compiler] sudo apt-get install build-essential [required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-d ...
分类:
其他好文 时间:
2020-01-29 16:00:14
阅读次数:
189
1.创建新工程 附源码 CMakeLists.txt文件 cmake_minimum_required(VERSION 3.9.5) project(tests) set(CMAKE_CXX_STANDARD 14) set(OpenCV_DIR "/home/navy/Desktop/worksp ...
分类:
其他好文 时间:
2020-01-29 15:48:33
阅读次数:
101
mysql8.0.18忘记密码问题 1. 管理员身份进入dos 2. 停止mysql服务 3. 无密码启动 4. 另启一个dos窗口,无密码登录 5. 清空密码 注意:authentication_string采用的是plugin加密方式,故设置为空,不要设置为其他值 6. 启动服务 关闭打开的两个 ...
分类:
数据库 时间:
2020-01-29 14:14:59
阅读次数:
95
1、使用validation插件先要下载相应文件: 打开dist文件夹: 打开dist中的localization文件夹(控制汉字): 打开该文件,主要内容如下: 1 required: "这是必填字段", 2 remote: "请修正此字段", 3 email: "请输入有效的电子邮件地址", 4 ...
分类:
其他好文 时间:
2020-01-28 11:04:56
阅读次数:
76
出现Bad credentials,排除了配置问题,debug跟到了数据库的内容可以查出; 最后发现是因为直接通过insert语句增加了用户信息,密码没有经过加密。 一:springSecurity提供了一个增加{noop}字符串来解决 "{noop}"+userInfo.getPassword() ...
分类:
编程语言 时间:
2020-01-27 09:30:00
阅读次数:
119
# Debian Packages Required:## mingw-w64# provides GCC cross-compiler. GCC 4.9.1 or later required.## mingw-w64-tools# provides pkg-config and other bu... ...
分类:
其他好文 时间:
2020-01-26 20:52:56
阅读次数:
66