Skip to content

Commit 27cfb89

Browse files
committed
update to mashlib>=2.0.0
1 parent 957b66e commit 27cfb89

File tree

10 files changed

+63
-383
lines changed

10 files changed

+63
-383
lines changed

common/js/auth-buttons.js

Lines changed: 0 additions & 67 deletions
This file was deleted.

common/js/index-buttons.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

common/js/index-buttons.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// ESM version of index-buttons.js
2+
/* global SolidLogic */
23
'use strict'
34
const keyname = 'SolidServerRootRedirectLink'
45
/* function register () {
56
alert(2)
67
window.location.href = '/register'
78
} */
89
document.addEventListener('DOMContentLoaded', async function () {
9-
const authn = UI.authn
10-
const authSession = UI.authn.authSession
10+
const authn = SolidLogic.authn
11+
const authSession = SolidLogic.authSession
1112

1213
if (!authn.currentUser()) await authn.checkUser()
1314
const user = authn.currentUser()

default-templates/server/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>Server info</h2>
4848
</div> <!-- end container-->
4949

5050
<script src="/mashlib.js"></script>
51-
<script src="/common/js/index-buttons.js"></script>
51+
<script src="/common/js/index-buttons.mjs"></script>
5252

5353
</body>
5454
</html>

lib/models/account-manager.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class AccountManager {
275275
webId: userAccount.webId,
276276
resetUrl
277277
}
278-
return this.emailService.sendWithTemplate('reset-password', emailData)
278+
return this.emailService.sendWithTemplate('reset-password.mjs', emailData)
279279
})
280280
}
281281

@@ -289,7 +289,7 @@ class AccountManager {
289289
webid: newUser.webId,
290290
name: newUser.displayName
291291
}
292-
return emailService.sendWithTemplate('welcome', emailData)
292+
return emailService.sendWithTemplate('welcome.mjs', emailData)
293293
}
294294
}
295295

0 commit comments

Comments
 (0)