Add ability to require e-mail verification
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {message_service} from './Message.service.js'
|
||||
|
||||
class ProfileService {
|
||||
|
||||
async get_profile(user_id = 'me') {
|
||||
@@ -11,7 +13,10 @@ class ProfileService {
|
||||
}
|
||||
|
||||
async update_profile({ user_id, first_name, last_name, email, login_shell = undefined, tagline = undefined }) {
|
||||
await axios.patch(`/api/v1/profile/${user_id}`, { first_name, last_name, email, tagline, login_shell })
|
||||
const results = await axios.patch(`/api/v1/profile/${user_id}`, { first_name, last_name, email, tagline, login_shell })
|
||||
if ( results && results.data && results.data.data && results.data.data.force_message_refresh ) {
|
||||
await message_service._listener_tick()
|
||||
}
|
||||
}
|
||||
|
||||
async update_notify({ user_id = 'me', app_key, gateway_url }) {
|
||||
|
||||
Reference in New Issue
Block a user