Angular 15 Authentication (Registration + Login + Role based access) using JSON server REST API

Angular 15 Authentication (Registration + Login + Role based access) using JSON server REST API

Nihira Techiees

1 год назад

117,068 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

A TO Z UPDATES - TELUGU
A TO Z UPDATES - TELUGU - 18.10.2023 20:28

sir, can't install ngx-toastr it does not install it shows an error, icant understand . what can i do please clarify my doubt

here is my issue :

D:\sai-angular-practice\veeru_workspace>npm install ngx-toastr -save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^15.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@">=16.0.0-0" from [email protected]
npm ERR! node_modules/ngx-toastr
npm ERR! ngx-toastr@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\91961\AppData\Local\npm-cache\_logs\2023-10-18T16_54_38_869Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\91961\AppData\Local\npm-cache\_logs\2023-10-18T16_54_38_869Z-debug-0.log


idont understand my problem , please solve this

Ответить
Prem Kishore
Prem Kishore - 14.10.2023 08:33

Thanks for the video. But not getting through authentication. while submitting the login form, getting "An error occurred during registration."

Ответить
Samin Serge
Samin Serge - 05.10.2023 05:17

Many thanks for this tutorial, very helpfully !

Ответить
Biplab Sharma
Biplab Sharma - 30.09.2023 21:12

Amazing sir

Ответить
mbua chege
mbua chege - 23.09.2023 15:57

Great content, Thank you👊

Ответить
-
- - 17.09.2023 13:28

Thanks.

Ответить
Umair Khan
Umair Khan - 14.09.2023 15:57

PUT /user/[object℅20Object] 404

Ответить
Umair Khan
Umair Khan - 14.09.2023 15:55

SIR I WRITE SAME CODE BUT MY USER DOESNOT UPDATE it give error For url ?
Why can you explain plzzz

Ответить
Christopher.R
Christopher.R - 07.09.2023 09:43

how to i add menu in json array in this project

Ответить
Dharmacherry
Dharmacherry - 20.08.2023 20:08

Thank you so much for your sharing knowledge it is helpful in my interview as well

Ответить
bangyu liang
bangyu liang - 11.08.2023 13:36

A very useful tutorial

Ответить
Learner
Learner - 07.08.2023 19:01

redirect if not signed.. good

Ответить
Aryan bhavsar
Aryan bhavsar - 06.08.2023 14:10

informative tutorial thank you for shearing it

Ответить
Siddhant Thorat
Siddhant Thorat - 29.07.2023 13:37

Authgaurd not. Working sir, class constructor authgaurd cannot be invoked without new

Ответить
Ines Riahi
Ines Riahi - 22.07.2023 19:51

I wanted to express my gratitude for this excellent video you've provided. Thank you for sharing such valuable content.

Ответить
Cassiano Pacheco
Cassiano Pacheco - 13.07.2023 15:16

Thanks, Mate! Amazing tutorial!

Ответить
Connecting Dots
Connecting Dots - 12.07.2023 23:46

Hi, What would be the role name to add Customer detail? I am getting error "you are not authorized to access."

Ответить
Abhishek Sah
Abhishek Sah - 04.07.2023 12:28

bsdk sahi se explain kar ben ke land

Ответить
Jet-jet
Jet-jet - 04.07.2023 07:10

Good tutorial, but you forgot to add error catcher in the log in. What if the user didn't register and tried enter credentials that is not yet created or registered.
thank you

Ответить
キミマロ先輩
キミマロ先輩 - 04.07.2023 05:09

thank you, you have helped me a lot, greetings from Bolivia...

Ответить
A’Vani
A’Vani - 30.06.2023 02:03

This tutorial was amazing! Helped me out a lot with my personal project. However there's just one thing I can't seen to get right .The username is being attached to the apiURL and i'm getting a 404 not found. How can I fix this? I would like for when the user logs in and submits the form for the url capture the ID as this is how my routes are set up. {path: 'cat/:id', component: CatUserProfilePageComponent},

Ответить
Mohibur Rahman
Mohibur Rahman - 23.06.2023 17:51

hello can you make a video for radio button and text area display in console without button .use only click radio button. like 1st radio button is yes and the same line text area. but only one click for both. thank you

Ответить
Mathipa Makgato
Mathipa Makgato - 20.06.2023 00:08

Firstly thank you very much for the great tutorial, I seem to have an issue on the below code while trying to login, "this.userdata" is undefined but I do have the data from the db.json file futhermore when debugging I can see the username value going to the service. Please help!!
if (this.loginform.valid) {
this.service.Getbycode(this.loginform.value.username).subscribe(res => {
this.userdata = res;
console.log(this.userdata);

Ответить
Karthick .b
Karthick .b - 14.06.2023 15:59

Hi bro, I tried your guidelines, but stuck in datasource in mattable is not working

Ответить
Ranjitha Naik P
Ranjitha Naik P - 31.05.2023 15:49

Hi, I have followed your tutorial. Till the updatepopupcompoentn its working fine, but while updating the isactive checkbox auto check is not working, and also unable to update also, its throwing 404 error on clicking update button could you please tell me where i may went wrong?

Ответить
Ranjitha Naik P
Ranjitha Naik P - 25.05.2023 10:38

HI, I have folowed your tutorial, after creating complete registration, when clicked on submit, its going to else part, showing please enter valid data,
please help me with this code.

Ответить
Shudhakar Kumar Gupta
Shudhakar Kumar Gupta - 12.05.2023 14:14

first which password use

Ответить
Gayan Kavinda
Gayan Kavinda - 10.05.2023 11:44

Thanks bro . I followed your tutorial It helps me well

Ответить
archana barsagade26
archana barsagade26 - 06.05.2023 02:10

canActivate is deprecated .. how to solve this?

Ответить
EARVINE MUNENE
EARVINE MUNENE - 02.05.2023 11:22

am submitting the registration details its not storing them in the db
why?

Ответить
Gyannea
Gyannea - 29.04.2023 00:31

Do you have any idea why the login screen does not respond correctly to reducing the size of the browser? When decreasing the horizontal width, the right side gets cut off. The left side does fine. I have tried all kinds of FlexBox directives (which seem to work) but I can't get the cards to shrink monotonically. The right side always gets cut off.

Ответить
Gyannea
Gyannea - 24.04.2023 14:53

I do not understand regex at all, but I think you said at least 8 characters and at least one upper case, lower case, number, and special character. But if I start my password with a number the validator regex fails. If I don't start with a number, I can create a password that passes. What can I do to allow a password to start with a number?

Ответить
Joseph Antonysamy
Joseph Antonysamy - 23.04.2023 02:25

Nice!

Ответить
Ana Bolovic
Ana Bolovic - 12.04.2023 22:28

Great! Thank you!

Ответить
Antonio Marin
Antonio Marin - 06.04.2023 23:24

Me ha parecido un tutorial muy bueno y muy completo, darte las gracias por tu tiempo, saludos desde España.

Ответить
vaibhav lande
vaibhav lande - 04.04.2023 07:43

where i can get BE api source code

Ответить
Rashmita Kamble
Rashmita Kamble - 03.04.2023 10:30

I am getting the error for the ' localhost:3000'. Err_connection_refused

Ответить
Dheeraj Raja
Dheeraj Raja - 03.04.2023 09:33

Would be better if you can create a video for interceptor as well with complete authentication and authorization

Ответить
Saiyathu abdul vahaf J
Saiyathu abdul vahaf J - 02.04.2023 13:01

Its a wonderful video thanks for the effort. Only one request from my side is do the authentication and authorization using jwt.

Ответить
Mohamed Banhakeia
Mohamed Banhakeia - 02.04.2023 04:23

Hello Sir,
Firstful, I would like to think you about this wonderful Video.
Secondly, I woud like to report warning Toaster that I got. I dont know why I can get the warning notification
however, i got this in console :
{toastId: 2, title: '', message: 'Veuillez à Entrer des données correctes', toastRef: ToastRef, onShown: Observable, …}

Ответить
Serigne Cheikh Ahmet Tidiane Sy Thioune
Serigne Cheikh Ahmet Tidiane Sy Thioune - 31.03.2023 05:59

Very good work.
Can I have your Backend code of angular application.

Ответить
hugo silva
hugo silva - 28.03.2023 18:28

Show

Ответить
Muhammad Arshath
Muhammad Arshath - 23.03.2023 14:24

Great tutorial. thanks

Ответить
Shubham Tiwari
Shubham Tiwari - 21.03.2023 16:07

please give me source code sir

Ответить
Bro Gidey
Bro Gidey - 20.03.2023 01:21

Good tutorial bro.. It would be very helpful if you can make a tutorial on how to preview and confirm form data before submitting it to the server in angular. Thank you for this tutorial

Ответить
Mst. Eshita Khatun
Mst. Eshita Khatun - 17.03.2023 09:06

I follow your code but user registration form (submit) is not taking any value. Why it is so Answer please

Ответить
Let'sTalkCinema
Let'sTalkCinema - 08.03.2023 20:08

sessionStorage geting null vale? pls help sir

Ответить
Antonio Carvalho
Antonio Carvalho - 02.03.2023 15:59

Thanks so much Bro! It's just what i need to start my project !!

Ответить