mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Revert "Fix bug?"
This reverts commit 2c9bacfceade688865ad1e8533ca494dd34d0ee5.
This commit is contained in:
parent
78f84dbc21
commit
17610e0a13
@ -53,9 +53,8 @@ export default Vue.extend({
|
||||
this.signing = true;
|
||||
|
||||
(this as any).api('signin', {
|
||||
// password という名前(または username とのペア?)では何らかのフィルタリングがされるっぽい?
|
||||
x: this.username,
|
||||
y: this.password,
|
||||
username: this.username,
|
||||
password: this.password,
|
||||
token: this.user && this.user.twoFactorEnabled ? this.token : undefined
|
||||
}).then(() => {
|
||||
location.reload();
|
||||
|
@ -12,8 +12,8 @@ export default async (ctx: Koa.Context) => {
|
||||
ctx.set('Access-Control-Allow-Credentials', 'true');
|
||||
|
||||
const body = ctx.request.body as any;
|
||||
const username = body['username'] || body['x'];
|
||||
const password = body['password'] || body['y'];
|
||||
const username = body['username'];
|
||||
const password = body['password'];
|
||||
const token = body['token'];
|
||||
|
||||
if (typeof username != 'string') {
|
||||
|
Loading…
Reference in New Issue
Block a user