Hi.
I'm having the same problem as Yezi. I want to "hide" the login page during the first load. I want the user to be directed directly to the page where you put your username and password. I had already add the property onEnter to the mm_login.site state, but when I open the application, It still request the site URL of my moodle.
I haven't tried the second option, which is hard coding the siteURL from $stateParams. I want to make it work using the first solution.
This is my state:
.state('mm_login.site', {
url: '/site',
templateUrl: 'core/components/login/templates/site.html',
controller: 'mmLoginSiteCtrl',
onEnter: function($state) {
$state.go('mm_login.credentials', {siteurl: 'http://xxxxx.xxxxxx.com'});
}
})
I hope someone could help me with this situation.
Greetings and thanks for the help.