Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Adding support for emailVerificationToken
Browse files Browse the repository at this point in the history
  • Loading branch information
swang committed Sep 13, 2013
1 parent 76f0e37 commit 62e9ede
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions lib/emailVerificationToken.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

var util = require('util')

var Abstract = require('./abstract')

var EmailVerificationToken = function() {
Abstract.apply(this, arguments)
this.setPath("accounts/emailVerificationTokens")
}

util.inherits(EmailVerificationToken, Abstract)

module.exports = EmailVerificationToken

EmailVerificationToken.prototype.post = function(callback) {
this.request('POST', [this.path, this.id], callback)
}
4 changes: 3 additions & 1 deletion lib/stormpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var Account = require('./account')
, Application = require('./application')
, Client = require('./client')
, Directory = require('./directory')
, EmailVerificationToken = require('./emailVerificationToken')
, Group = require('./group')
, GroupMembership = require('./groupMembership')
, PasswordResetToken = require('./passwordResetToken')
Expand All @@ -15,6 +16,7 @@ module.exports.Application = Application
module.exports.Client = Client
module.exports.Directory = Directory
module.exports.Group = Group
module.exports.EmailVerificationToken = EmailVerificationToken
module.exports.GroupMembership = GroupMembership
module.exports.PasswordResetToken = PasswordResetToken
module.exports.Tenant = Tenant
module.exports.Tenant = Tenant

0 comments on commit 62e9ede

Please sign in to comment.