diff --git a/backend/samfundet/migrations/0042_occupiedtimeslot.py b/backend/samfundet/migrations/0025_occupiedtimeslot.py similarity index 93% rename from backend/samfundet/migrations/0042_occupiedtimeslot.py rename to backend/samfundet/migrations/0025_occupiedtimeslot.py index d65e64621..0b6b6f865 100644 --- a/backend/samfundet/migrations/0042_occupiedtimeslot.py +++ b/backend/samfundet/migrations/0025_occupiedtimeslot.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0 on 2023-12-17 21:25 +# Generated by Django 5.0 on 2023-12-19 12:37 import django.db.models.deletion from django.conf import settings @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ - ("samfundet", "0041_recruitmentposition_norwegian_applicants_only_and_more"), + ("samfundet", "0024_recruitmentposition_norwegian_applicants_only_and_more"), ] operations = [ diff --git a/backend/samfundet/serializers.py b/backend/samfundet/serializers.py index d1cb95eea..cfe21e16a 100644 --- a/backend/samfundet/serializers.py +++ b/backend/samfundet/serializers.py @@ -252,7 +252,7 @@ def validate(self, attrs: dict) -> dict: class RegisterSerializer(serializers.Serializer): """ - This serializer defines two fields for authentication: + This serializer defines following fields for registration * username * email * phone_number diff --git a/frontend/src/Pages/LoginPage/LoginPage.tsx b/frontend/src/Pages/LoginPage/LoginPage.tsx index 541ee4133..6a2df7d8a 100644 --- a/frontend/src/Pages/LoginPage/LoginPage.tsx +++ b/frontend/src/Pages/LoginPage/LoginPage.tsx @@ -55,7 +55,7 @@ export function LoginPage() {

{t(KEY.loginpage_internal_login)}

- + {loginFailed &&

{t(KEY.loginpage_login_failed)}

}
diff --git a/frontend/src/Pages/SignUpPage/SignUpPage.tsx b/frontend/src/Pages/SignUpPage/SignUpPage.tsx index 914c8d59b..9a4e8ed4d 100644 --- a/frontend/src/Pages/SignUpPage/SignUpPage.tsx +++ b/frontend/src/Pages/SignUpPage/SignUpPage.tsx @@ -68,12 +68,7 @@ export function SignUpPage() {

{t(KEY.loginpage_register)}

- + diff --git a/frontend/src/i18n/constants.ts b/frontend/src/i18n/constants.ts index 86c09301a..c6915de99 100644 --- a/frontend/src/i18n/constants.ts +++ b/frontend/src/i18n/constants.ts @@ -130,7 +130,7 @@ export const KEY = { // LoginPage: loginpage_register: 'loginpage_register', loginpage_internal_login: 'loginpage_internal_login', - loginpage_email_placeholder: 'loginpage_email_placeholder', + loginpage_username: 'loginpage_username', loginpage_forgotten_password: 'loginpage_forgotten_password', loginpage_login_failed: 'loginpage_login_failed', diff --git a/frontend/src/i18n/translations.ts b/frontend/src/i18n/translations.ts index 02d196d81..53d2350e0 100644 --- a/frontend/src/i18n/translations.ts +++ b/frontend/src/i18n/translations.ts @@ -120,7 +120,7 @@ export const nb: Record = { [KEY.loginpage_register]: 'Lag bruker', [KEY.loginpage_login_failed]: 'Innlogging feilet', [KEY.loginpage_internal_login]: 'Logg inn som intern', - [KEY.loginpage_email_placeholder]: 'Brukernavn', + [KEY.loginpage_username]: 'Brukernavn', [KEY.loginpage_forgotten_password]: 'Glemt passordet ditt?', // GroupsPage: @@ -356,7 +356,7 @@ export const en: Record = { // LoginPage: [KEY.loginpage_register]: 'Create user', [KEY.loginpage_internal_login]: 'Log in as internal', - [KEY.loginpage_email_placeholder]: 'Username', + [KEY.loginpage_username]: 'Username', [KEY.loginpage_forgotten_password]: 'Forgot password?', [KEY.loginpage_login_failed]: 'Login failed',