Skip to content

Commit 9f255ed

Browse files
authored
Update LoginPanel.java
Code Updated
1 parent f99f848 commit 9f255ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/collegeapplication/login/LoginPanel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ else if(loginprofile.equals("Faculty"))
168168
Faculty f=new FacultyData().getFacultyInfobyUserId(useridfield.getText());
169169
if(!f.getCourceCode().equals("Not Assigned"))
170170
{
171+
172+
new UserData().addFacultyLoginTime(f);
171173
FacultyMain fm=new FacultyMain(f);
172174
fm.setVisible(true);
173175
fm.setLocationRelativeTo(null);
@@ -188,6 +190,7 @@ else if(loginprofile.equals("Student"))
188190
if(result==true)
189191
{
190192
Student s=new StudentData().getStudentDetailsByUserId(useridfield.getText());
193+
new UserData().addStudentLoginTime(s);
191194
StudentMain sm=new StudentMain(s);
192195
sm.setVisible(true);
193196
sm.setLocationRelativeTo(null);

0 commit comments

Comments
 (0)