rename cracked to noauth and remove the possibility to self register as such

This commit is contained in:
2023-11-13 11:42:24 +01:00
parent 241d6c031e
commit 4a4135c31e
9 changed files with 17 additions and 30 deletions

View File

@ -1,5 +1,5 @@
import { describe, expect, test } from 'vitest';
import { getBedrockUuid, getCrackedUuid, getJavaUuid } from '$lib/server/minecraft';
import { getBedrockUuid, getJavaUuid, getNoAuthUuid } from '$lib/server/minecraft';
describe('java username', () => {
test('is valid', async () => {
@ -19,9 +19,9 @@ describe('bedrock username', () => {
});
});
describe('cracked username', () => {
describe('noauth username', () => {
// every username can be converted to an uuid so every user id automatically valid
test('is valid', () => {
expect(getCrackedUuid('bytedream')).toBe('88de3863-bf47-30f9-a7f4-ab6134feb49a');
expect(getNoAuthUuid('bytedream')).toBe('88de3863-bf47-30f9-a7f4-ab6134feb49a');
});
});