Skip to content

회원가입, 정보수정(이미지 업로드 포함), 회원탈퇴

Notifications You must be signed in to change notification settings

madsquare/snackk-web-api-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snackk-web-api-user

require

  • lodash

not amd

window.snackkModule.user

functions

user:

  • registerUser (user, callback, options)
  • loadUser (options, callback)
  • updateUser (user, callback, options)
  • deleteUser (callback)

provider:

  • addProvider (sns, token, callback)
  • deleteProvider (sns, callback)

profile:

  • updateProfile (fileInput, callback)
  • deleteProfile (callback)
  • loadDefaultProfile (callback)

password:

  • updatePassword (oldPasswd, newPasswd, callback, options)

validate:

  • validateEmail (email, callback)

verify:

  • sendEmail (callback)

managing:

  • setUser (User)
  • getUser

validate email ERROR CODE

DUPLICATED: 'error_duplicated'
INVALID: 'error_invalid'
UN_KNOWN: 'error_unknown'

example

userModule.init server
userModule.loadMe {
  'success': (res) =>
    debugger
  'error': (er) =>
    debugger
}

About

회원가입, 정보수정(이미지 업로드 포함), 회원탈퇴

Resources

Stars

Watchers

Forks

Packages

No packages published