Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleMPath with Update Queries
linenumberstrue
 <Request method="GET">
		<Desc> Add password token </Desc>
    	<Param name="email" type="email" required="true" />
        <Param name="token" type="text" required="true" />
    	<Sql id="invalidateinvalidatedRecords">
          update password_tokens set validity=0 where email=$email
      	</Sql>
		<Sql id="token" output="true" when="invalidateinvalidatedRecords > 0">
          Insert into password_tokens(email, token) values ($email,$token)
      	</Sql>
	</Request>

...