# Invitation and first password ## Prepare the invitation at the institution A staff member with `students.invite` selects students they can access in the [student list](/en/docs/students). Each [student record](/en/docs/student-details) needs a valid email and birth date. The address must be unique among student records that have not been deleted. A registered student or a student with a current invitation is skipped. The result identifies queued recipients and the reasons for skipped records. For example, Ani's record contains `ani.student@example.org` and her birth date. A staff member selects her row and sends an invitation. The mail is queued for delivery. Sending, sent and opened distinguish delivery steps from setting a password. Opened alone does not mean that registration is complete. ## Set your first password 1. Open the institution's invitation email and follow its `/activate/:token` link on the student portal. The invitation is valid for one day from issue. Opening `/activate` alone cannot start activation. There is no self-registration form on the sign-in page. 2. After checking the invitation, the portal displays the recipient email in a read-only field. Check it against your address. If the email was meant for someone else, contact the institution. The student does not enter a birth date on this screen. 3. Enter a new password of at least ten characters with a letter and a number. Repeat it exactly. The server also checks for known compromised passwords. If rejected, choose another password and enter it in both fields. 4. Select Activate. The portal saves the password, marks the account registered and opens `/login` with your email filled in. Complete [student sign-in](/en/docs/student-portal-login), including the code from the new login email. ## If the invitation will not open A missing, used, expired or invalid link can return you to sign-in with an invitation unavailable message. If the institution changed your student email after sending the invitation, ask staff to check the current address. Reopening a used link does not create another account. Sign in, or use [password recovery](/en/docs/student-portal-password-recovery) if you have forgotten the password. If activation was never completed, staff can check the invitation status. A missing, failed or expired invitation can be issued again. Personal details should be corrected in the student record. The activation form cannot select a different student or institution. ## Implementation references - [student_back · Controllers/ActivationController.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Auth/Http/Controllers/ActivationController.php) - [student_back · Services/ActivationService.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Auth/Services/ActivationService.php) - [student_back · Requests/CompleteActivationRequest.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Auth/Http/Requests/CompleteActivationRequest.php) - [student_back · Requests/CompleteInvitationRequest.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Auth/Http/Requests/CompleteInvitationRequest.php) - [frontend-edusystems · auth/SetPasswordPage.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/students/src/features/auth/SetPasswordPage.tsx) - [frontend-edusystems · components/PasswordFields.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/students/src/features/auth/components/PasswordFields.tsx) - [frontend-edusystems · store/thunk.ts L130-179](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/students/src/features/auth/store/thunk.ts#L130-179) - [backend-edusystems · Services/StudentInvitationService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Students/Services/StudentInvitationService.php) - [backend-edusystems · Mail/StudentInvitationMail.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Students/Mail/StudentInvitationMail.php) - [backend-edusystems · Jobs/SendStudentInvitationJob.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Students/Jobs/SendStudentInvitationJob.php)