🔐 Customising Login page | Understanding full magic of customisation | SCM Project Spring Security
HTML-код
- Опубликовано: 2 окт 2024
- 🔐 Customising Login page | Understanding full magic of customisation | SCM Project Spring Security
Source Code: github.com/Lea...
Full Project Link: • Smart Contact Manager 2.0
Complete NextJs Series: • NextJS Tutorial with P...
Premium Course Library: courses.learnc...
React JS Course : courses.learnc...
Master Spring Boot Course : courses.learnc...
Telegram Link for Doubt: t.me/learncode...
Important Videos:
➡️React JS with Project : • 🔥 🔥 Complete React Js ...
➡️Learn JDBC in one video: • JDBC Crash Course in 1...
➡️Learn Python in One Video: • Learn Python in One Vi...
➡️Learn HTML in one video: • Jquery in one video in...
➡️Learn HTML form in one video: • Jquery in one video in...
➡️Learn JavaScript in one videos: • Learn JavaScript in O...
➡️Learn Form Validation using javascript and jquery: • Form Validation using ...
➡️Learn CSS in one video: • Jquery in one video in...
➡️Jquery in one video: • Jquery in one video in...
Kotlin is one video: • Kotlin | Learn Kotlin ...
➡️Complete Python Project - RUclips downloader in one video: • Jquery in one video in...
Important Playlist:
➡️Spring Boot Tutorial with Project : • Spring Boot Tutorial i...
➡️Spring MVC Tutorial: • Spring MVC Tutorial St...
➡️Complete Spring Framework Tutorial: • Spring Framework Tutor...
➡️Hibernate Tutorials: • Hibernate Tutorial for...
➡️E-Commerce Project using Java: • E-Commerce Project usi...
➡️AWS Free Java Hosting Playlist: • AWS Hosting Tutorial |...
➡️Hibernate Tutorial Playlist: • Hibernate Tutorial for...
➡️Learn Technology in One Vides: • Learn in one video : C...
➡️Programming Tips for Programmers: • Coding Tips and Discus...
➡️Complete Python for Beginners: • Complete Python Tutori...
➡️Important Python Projects: • Python Projects in Hindi
➡️Complete Servlet & JSP : • Servlet and Jsp (Serve...
➡️Complete JDBC ( Java Database Connectivity) : • JDBC(Java Database Con...
➡️Complete Java Project : TechBlog: • Full Java Advance Pro...
➡️Java Swing Projects: • Java Projects for begi...
➡️Java Core Concepts: • Java Core Tutorial
➡️Kya aap Jante hai Series: • kya app jante hai : s...
Important Links:
👉Official Website (Source Code): learncodewithd...
👉Telegram Discussion Group: t.me/learncode...
👉Follow me on Instagram: / durgesh_k_t
👉Follow on Facebook / learncodewithdurgesh
Disclaimer:
All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
#Issue: 3:50
I am getting error
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sun Jul 21 21:22:12 IST 2024
There was an unexpected error (type=Method Not Allowed, status=405).
Method 'POST' is not supported.
Did't found any valid solution
hey man, facing the same issue, could you please explain how to tackled the error. Thanks
@@akashranjan930 I have added another comment, #Issue Solved, check in comments
Durgesh Sir
Please deploy the project at the end as this will help us to add it in the Resule as this is a fantastic project
good luck
sir make new vidoe for confirm from resubmission #issue In Post method reloding
Thank you sir
Sir all videos done for this series please add new ones
Very nice videos
Bro mera login page full screen me automatically open ho rha but as per sir ye screen k middle me open hona chahiye.. please help me out
successForwordUrl("/user/dashboard") to replace defaultSuccessUrl("/user/dashboard")
Sir please continue this project
Sir apke spring boot course main spring boot security bhi hai
Isme custome captcha implement kro ... login page pe
Sir.next vedio kab ayai gi
Not able to login, It says "post method is not supported " On hitting "/authenticate" .
Please provide me some solution. Thank you.
I'm also facing the same issue...is you issue got sorted out ?? Can you please help me.
@@amankhairwar8072 Pls try after replacing successFarwardUrl("/user/dashboard") to defaultSuccessUrl("/user/dashboard") ; hope it will work
bro found any solution to that?
@@amankhairwar8072 is it resolved?
@@tanaydwivedi1724 not yet buddy!!
Hi tried to buy your course multiple times in your website but I think your payment gateway doesn't support payment outside of india..
Is there any way?
done
I have an errors method post is not supported...how can I solve it ... Please help me
Getting the same error when trying to login it says
Method 'POST' is not supported.
org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' is not supported
for authenticate
How can solve this problem
@@13sudhanshu20
formLogin.successForwardUrl didnt work but defaultSuccessUrl worked
formLogin.failureForwardUrl didnt work but failureUrl worked
@@vivekchaurasia3055
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception{
http
.authorizeHttpRequests( (authorize) -> {
authorize
.requestMatchers("/index","/css/**","/js/**","/images/**","/signup","/login","/services","/contact","/about","/process-register").permitAll()
.requestMatchers("/user/**").authenticated();
});
http .csrf( (csrf) -> {
csrf.disable();
})
.formLogin( (formLogin) -> {
formLogin.loginPage("/login")
.loginProcessingUrl("/login")
.defaultSuccessUrl("/user/dashboard",true)
.failureUrl("/login?error=true")
.usernameParameter("email")
.passwordParameter("password");
});
http
.logout( (logout) -> {
logout.permitAll()
.logoutSuccessUrl("/login?logout=true");
});
return http.build();
}
Use this code and dont change any previous mappings , change the urls as per your code
@@vivekchaurasia3055 @Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception{
http
.authorizeHttpRequests( (authorize) -> {
authorize
.requestMatchers("/index","/css/**","/js/**","/images/**","/signup","/login","/services","/contact","/about","/process-register").permitAll()
.requestMatchers("/user/**").authenticated();
});
http .csrf( (csrf) -> {
csrf.disable();
})
.formLogin( (formLogin) -> {
formLogin.loginPage("/login")
.loginProcessingUrl("/login")
.defaultSuccessUrl("/user/dashboard",true)
.failureUrl("/login?error=true")
.usernameParameter("email")
.passwordParameter("password");
});
http
.logout( (logout) -> {
logout.permitAll()
.logoutSuccessUrl("/login?logout=true");
});
return http.build();
}
Use this code and dont change any previous mappings , change the urls as per your code
done. but complicated hai
Thanks you sir. Really It is good project and make us good understanding.
Keep it bro... Best thing is you are not skipping anything which is helping us a lot to understand everything.
Can anyone please help me out , mera css ni chla rha syd , login form or signup form automatically full screen pe aa rha ... Or koi colour v apply ni ho rha please anyone help me.
Sir, Keep it up you are doing great work and can we deploy this application on docker and k8s ?
❤super excited for next vedio ❤
Bro how can I solve my problem
@@13sudhanshu20 which ... problem are u facing and where?
In how many days will the project be completed?
Bre bhaiya (Durgesh) please give me suggestions how can i solve problem method post is not supported 14:38 please help......
i am having too same problem
add this line inside form tag
@@sadiulhakim7814Where??
@@sadiulhakim7814where??
@@sadiulhakim7814 not working, is there an alternate solution
sir please continue this project, please
For the error:-
error when trying to login it says
Method 'POST' is not supported.
org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' is not supported
Solution:-
Pls try after replacing successFarwardUrl("/user/dashboard") to defaultSuccessUrl("/user/dashboard") ; hope it will work
This works and solves the error for time being, thanks!
Yes it's worked, But why can u explain
Please continue playlist....
I get the error in post request
On hitting "/authenticate" it gives an error post method is not supported
Can anyone resolve it?
i am having same problem
Is this your error resolve?
I have facing same error but now resolved, in my case there was spelling mistake of password in SecurityConfig.java, make sure your spelling is correct
@@sadiulhakim7814where to add this line
hello sir
app vs code ka theme kon sa use kar rahe hai please bata do
🙂👍
Just wasted my time 😔, zillion times tried to resolve /logout and it never worked 😣
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception{
http
.authorizeHttpRequests( (authorize) -> {
authorize
.requestMatchers("/index","/css/**","/js/**","/images/**","/signup","/login","/services","/contact","/about","/process-register").permitAll()
.requestMatchers("/user/**").authenticated();
});
http .csrf( (csrf) -> {
csrf.disable();
})
.formLogin( (formLogin) -> {
formLogin.loginPage("/login")
.loginProcessingUrl("/login")
.defaultSuccessUrl("/user/dashboard",true)
.failureUrl("/login?error=true")
.usernameParameter("email")
.passwordParameter("password");
});
http
.logout( (logout) -> {
logout.permitAll()
.logoutSuccessUrl("/login?logout=true");
});
return http.build();
}
Use this code and dont change any previous mappings , change the urls as per your code
@LearnCodeWithDurgesh sir getting an error where it says:
Sun Aug 25 01:09:53 IST 2024
There was an unexpected error (type=Method Not Allowed, status=405).
Method 'POST' is not supported.
can you / anyone please guide
+1
@@anonymous.6969 use successForwardUrl() method.. scroll down to see the code
I also getting same error
If u got answer can u text
@@hms-m6q yes, try changing the successForwardUrl() to defaultSuccessHandler("/user/profile")
After getting Login i am Getting this issue
Tue Jun 04 14:44:38 IST 2024
There was an unexpected error (type=Internal Server Error, status=500).
failed to lazily initialize a collection of role: com.scm.proj.spring.entity.User.contact: could not initialize proxy - no Session
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.scm.proj.spring.entity.User.contact: could not initialize proxy - no Session
at org.hibernate.collection.spi.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:634)
Hii @ComedyHeros this issue is resolved or not. Actually I am getting the same error
@@Jiveshsoni123 spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
Add above code in properties file
@@ComedyHeros bro mera css ni chl rha ye login or signup form sare full screen me aa rhe automatically or koi v colors applied ni h please helo me out... Maine wo css build wala command v chla liye phir v resolve ni ho rha.
@@SHUBHAM-yy2si Bhai terminal me ye command run hoti rehni chahiye propper css generate hone ke liye npx tailwindcss -i src/main/resources/static/css/input.css -o src/m
ain/resources/static/css/output.css --watch
Bhai tum toh boll rhe the ki. Eksath daal dogge videos saari