Skip to content

Commit

Permalink
fixup: /mmw/user -- back to --> /user
Browse files Browse the repository at this point in the history
fixup for e6bc230
  • Loading branch information
Alice Rottersman committed Aug 31, 2017
1 parent 3613c25 commit 79478b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/mmw/apps/user/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class TaskRunnerTestCase(LiveServerTestCase):
HOMEPAGE_URL = 'http://localhost:8081/'
LOGIN_URL = 'http://localhost:8081/mmw/user/login'
LOGIN_URL = 'http://localhost:8081/user/login'

def setUp(self):
User.objects.create_user(username='bob', email='bob@azavea.com',
Expand Down
16 changes: 8 additions & 8 deletions src/mmw/js/src/user/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ var UserModel = Backbone.Model.extend({
guest: true
},

url: '/mmw/user/login',
url: '/user/login',

// Both login and logout methods return jqXHR objects so that callbacks can
// be specified upon usage. They both update the user model, so any event
// listeners that subscribe to the `sync` event will be triggered.
login: function(attrs) {
return this.fetch({
type: 'POST',
url: '/mmw/user/login',
url: '/user/login',
data: {
'username': attrs.username,
'password': attrs.password
Expand All @@ -27,7 +27,7 @@ var UserModel = Backbone.Model.extend({

logout: function() {
var jqXHR = this.fetch({
url: '/mmw/user/logout'
url: '/user/logout'
});

var user = this;
Expand Down Expand Up @@ -70,7 +70,7 @@ var LoginFormModel = ModalBaseModel.extend({
successCallback: null
},

url: '/mmw/user/login',
url: '/user/login',

validate: function(attrs) {
var errors = [];
Expand Down Expand Up @@ -114,7 +114,7 @@ var SignUpFormModel = ModalBaseModel.extend({
showItsiButton: true
},

url: '/mmw/user/sign_up',
url: '/user/sign_up',

validate: function(attrs) {
var errors = [];
Expand Down Expand Up @@ -161,7 +161,7 @@ var ForgotFormModel = ModalBaseModel.extend({
email: null
},

url: '/mmw/user/forgot',
url: '/user/forgot',

validate: function(attrs) {
var errors = [];
Expand Down Expand Up @@ -194,7 +194,7 @@ var ResendFormModel = ModalBaseModel.extend({
email: null
},

url: '/mmw/user/resend',
url: '/user/resend',

validate: function(attrs) {
var errors = [];
Expand Down Expand Up @@ -226,7 +226,7 @@ var ItsiSignUpFormModel = ModalBaseModel.extend({
next: '/'
},

url: '/mmw/user/itsi/sign_up',
url: '/user/itsi/sign_up',

validate: function(attrs) {
var errors = [];
Expand Down
2 changes: 1 addition & 1 deletion src/mmw/mmw/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
url(r'^mmw/modeling/', include(apps.modeling.urls)),
url(r'^api/', include(apps.geoprocessing_api.urls)),
url(r'^micro/', include(apps.water_balance.urls)),
url(r'^mmw/user/', include(apps.user.urls))
url(r'^user/', include(apps.user.urls))
)

0 comments on commit 79478b2

Please sign in to comment.