feat: implement user profile management with avatars, login, and personal data
- Add avatar upload functionality with public URL access. - Implement user login with email and password authentication. - Create endpoints for fetching and updating the authenticated user's profile. - Set up database migrations for user profiles, including email and role management. - Introduce personal data management linked to user profiles. - Add email verification process with welcome email templates.
This commit is contained in:
13
profiles/me.go
Normal file
13
profiles/me.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package profiles
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
// Me returns the profile of the currently authenticated caller, or nil if
|
||||
// the request is not authenticated.
|
||||
//
|
||||
//encore:api public method=GET path=/auth/me
|
||||
func Me(ctx context.Context) (*Profile, error) {
|
||||
return Get(ctx)
|
||||
}
|
||||
Reference in New Issue
Block a user