ashrawan / leave-management-angular

Project created as a demo. No longer UPDATED. Use only for educational purpose.
https://ashrawan.github.io/leave-management-angular/
8 stars 20 forks source link

user login issue #7

Open localsonu opened 3 years ago

localsonu commented 3 years ago

hi ashwan kindly reply to this i added a employee in database with username and encyrpt password using bcyrpt password generator when i try to login it display invalids creds kindl assist how to make it possible to login user

ashrawan commented 3 years ago

I am not sure about the configuration that you have used. you can check out this sample-schema for database structure. https://github.com/ashrawan/employee-leave-management/blob/master/sample-scema.sql

Sample patch you may be looking for:- (encrypted password here is "admin") INSERT INTOemployee(employee_id,created_at,email,first_name,last_name,middle_name,password,phone_number,role,status,username,group_id,supervisor) VALUES (1, '2020-12-16 20:01:33', NULL, 'admin', 'admin', NULL, '$2a$10$9YBWBYJhjSYCeOpEzIG/H.WbPqlNa688Fs7klp7P07vOUX27ubwlu', '000000000', 'ROLE_ADMIN', 'ACTIVE', 'admin', NULL, NULL);

I had already discontinued the project but you can reach me if you need further assistance.

localsonu commented 3 years ago

Thank so much for your reply I really appreciated your help Well I would like to explain the what i am doing i just clone your project and created a schema and running both spring boot and angular project now i just insert a employee with bcyrpt encoded password and other details as normal When i hit login button it shows me bad credentials error in logs This is what i am facing

Sent from my iPhone

On 16-Dec-2020, at 8:36 PM, Shrawan notifications@github.com wrote:

I am not sure about the configuration that you have used. you can check out this sample-schema for database structure. https://github.com/ashrawan/employee-leave-management/blob/master/sample-scema.sql

Sample path you may be looking for:- (encrypted password here is "admin") INSERT INTO employee (employee_id, created_at, email, first_name, last_name, middle_name, password, phone_number, role, status, username, group_id, supervisor) VALUES (1, '2020-12-16 20:01:33', NULL, 'admin', 'admin', NULL, '$2a$10$9YBWBYJhjSYCeOpEzIG/H.WbPqlNa688Fs7klp7P07vOUX27ubwlu', '000000000', 'ROLE_ADMIN', 'ACTIVE', 'admin', NULL, NULL);

I had already discontinued the project but you can reach me if you need further assistance.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ashrawan commented 3 years ago

The details can't be debugged, without looking into the network logs or the project setups. Maybe, I can help you. Reach me on telegram, https://t.me/ashrawan

localsonu commented 3 years ago

Hi shrawan your yesterday added file helped me out alot and i came out of my issue

Sent from my iPhone

On 16-Dec-2020, at 11:41 PM, Shrawan notifications@github.com wrote:

The details can't be debugged, without looking into the network logs or the project setups. Maybe, I can help you. Reach me on telegram, https://t.me/ashrawan

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

localsonu commented 3 years ago

Thanks alot God bless you all the way

Sent from my iPhone

On 16-Dec-2020, at 11:41 PM, Shrawan notifications@github.com wrote:

The details can't be debugged, without looking into the network logs or the project setups. Maybe, I can help you. Reach me on telegram, https://t.me/ashrawan

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

souravCoder1 commented 5 months ago

Can u please share that file?